diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2007-05-18 16:52:50 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2007-05-18 16:52:50 +0000 |
commit | ead3796adeed06a7d314317d3ca65861409eebda (patch) | |
tree | 5095c682c12e003d98fa8e591a72afbb70921376 /libs/ardour/track.cc | |
parent | dcaa9cd70d04c8f6eb63c814068c9fa5a60adc7e (diff) |
allow diskstream deletion after a track is removed by using weak_ptr<Diskstream> instead of shared_ptr<Diskstream> in GUI signal handling
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@1883 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/track.cc')
-rw-r--r-- | libs/ardour/track.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libs/ardour/track.cc b/libs/ardour/track.cc index 95e21e6735..e9b16b137c 100644 --- a/libs/ardour/track.cc +++ b/libs/ardour/track.cc @@ -60,6 +60,9 @@ Track::Track (Session& sess, const XMLNode& node, DataType default_type) Track::~Track () { + if (_diskstream) { + _diskstream->drop_references (); + } } void |