mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-06 05:35:47 +01:00
drop references to disk reader and writer objects in Track destructor
This commit is contained in:
parent
dd58e9b7b6
commit
23a43c5d55
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