mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-09 23:25:43 +01:00
drop references to disk reader and writer objects in Track destructor
This commit is contained in:
parent
1b058a6ab9
commit
d0faa8e0d6
1 changed files with 10 additions and 0 deletions
|
|
@ -60,6 +60,16 @@ Track::Track (Session& sess, string name, PresentationInfo::Flag flag, TrackMode
|
|||
Track::~Track ()
|
||||
{
|
||||
DEBUG_TRACE (DEBUG::Destruction, string_compose ("track %1 destructor\n", _name));
|
||||
|
||||
if (_disk_reader) {
|
||||
_disk_reader->set_route (boost::shared_ptr<Route>());
|
||||
_disk_reader.reset ();
|
||||
}
|
||||
|
||||
if (_disk_writer) {
|
||||
_disk_writer->set_route (boost::shared_ptr<Route>());
|
||||
_disk_writer.reset ();
|
||||
}
|
||||
}
|
||||
|
||||
int
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue