diff options
author | Robin Gareus <robin@gareus.org> | 2020-03-14 12:37:22 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2020-03-14 13:25:54 +0100 |
commit | db59711bc97edc1204f99ae2fc6dc1a3d991e90f (patch) | |
tree | 89ad3265813cb189b663e26cdfc6f96aa55851bc /libs/ardour/audio_track.cc | |
parent | 8f378650700930dba1865cb1bdf1895223e6dd43 (diff) |
Fix SessionHandleRef shared-ptr leak when unfreezing tracks
Diffstat (limited to 'libs/ardour/audio_track.cc')
-rw-r--r-- | libs/ardour/audio_track.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libs/ardour/audio_track.cc b/libs/ardour/audio_track.cc index 692549551d..20a540b0fa 100644 --- a/libs/ardour/audio_track.cc +++ b/libs/ardour/audio_track.cc @@ -490,6 +490,11 @@ AudioTrack::unfreeze () /* XXX need to use _main_outs _panner->set_automation_state (_freeze_record.pan_automation_state); */ } + for (vector<FreezeRecordProcessorInfo*>::iterator ii = _freeze_record.processor_info.begin(); ii != _freeze_record.processor_info.end(); ++ii) { + delete *ii; + } + _freeze_record.processor_info.clear (); + _freeze_record.state = UnFrozen; FreezeChange (); /* EMIT SIGNAL */ } |