diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2006-08-29 00:23:45 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2006-08-29 00:23:45 +0000 |
commit | 6535cd1b1dbab7cc59a356c81d92dbc2cf25333b (patch) | |
tree | 90002ec1819c61db4b0981405d27535af3a79f70 /libs/ardour/reverse.cc | |
parent | c871ca6d9833ebda3bf286462b96146550b49cef (diff) |
used shared_ptr<Source>, somewhat successfully
git-svn-id: svn://localhost/ardour2/trunk@861 d708f5d6-7413-0410-9779-e7cbd77b26cf
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; } } |