diff options
Diffstat (limited to 'libs/ardour/reverse.cc')
-rw-r--r-- | libs/ardour/reverse.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libs/ardour/reverse.cc b/libs/ardour/reverse.cc index 4d8dd22aa4..e62821d5e6 100644 --- a/libs/ardour/reverse.cc +++ b/libs/ardour/reverse.cc @@ -82,7 +82,7 @@ Reverse::run (boost::shared_ptr<AudioRegion> region) /* read it in */ - if (region->source (n).read (buf, fpos, to_read) != to_read) { + if (region->source (n)->read (buf, fpos, to_read) != to_read) { goto out; } @@ -117,7 +117,6 @@ Reverse::run (boost::shared_ptr<AudioRegion> region) if (ret) { for (si = nsrcs.begin(); si != nsrcs.end(); ++si) { (*si)->mark_for_remove (); - delete *si; } } |