13
0
livetrax/libs
Robin Gareus 9e6435ff14
Fix mem-leak, Playlist/Region SessionHandleRef
When a playlist is deleted and drops_references(), any
undo/redo StatefulDiffCommand referncing playlist invoke
Destructible::drop_references() of the Command.

This leads to command_death(). As opposed to UndoTransaction::clear()
the StatefulDiffCommand was not destroyed.

In case of playlists StatefulDiffCommand::_changes contains
PBD::SequenceProperty<std::list<boost::shared_ptr<Region> > >
and shared pointer reference of the playlist regions were kept
indefinitely.

This fixes the following scenario:
New session, import an file, delete the created track,
clean up unused sources (delete unused playlists)[, quit].

A reference to the imported region was kept, because of the
playlist's undo command (insert region). Yet the source file
was deleted.


PS. Most playlist changes are accompanied by GUI zoom/selection
MementoCommands. Those are currently never directly dropped.
command_death() leaves those in place.
2020-02-25 21:45:07 +01:00
..
appleutility
ardour Disable Transport Master boost debug 2020-02-25 16:17:00 +01:00
ardouralsautil
audiographer NO-OP: whitespace 2020-01-14 00:52:24 +01:00
backends Fix CoreAudio systemic latency, implement hw latency report 2020-02-24 04:24:50 +01:00
canvas Remove unused forward declaration. 2020-02-24 23:01:15 +01:00
clearlooks-newer Special case checkbox border color in Treeview 2020-01-25 03:40:04 +01:00
evoral Fix building unit-tests 2020-01-27 17:43:37 +01:00
fluidsynth Amend previous commit, fluidsynth tables 2019-12-03 00:23:54 +01:00
fst Fix cross-compile linking (arm-linux ld) 2020-02-14 00:20:45 +01:00
gtkmm2ext Explicitly use OSX 2020-01-25 04:07:41 +01:00
hidapi
libltc
lua Lua Array, assert indices > 0 2020-02-06 17:30:21 +01:00
midi++2 Fix building unit-tests 2020-01-27 17:43:37 +01:00
panners Explicitly use OSX 2020-01-25 04:07:41 +01:00
pbd Fix mem-leak, Playlist/Region SessionHandleRef 2020-02-25 21:45:07 +01:00
plugins Update waf2.x "subst" feature uses obj attributes 2020-01-25 06:20:28 +01:00
ptformat ptformat: Update to upstream 55f08d8 (simplify version detection) 2020-02-09 17:55:48 +11:00
qm-dsp Do not install static libs 2020-01-22 02:00:25 +01:00
surfaces Websockets: error on unhandled callbacks 2020-02-24 22:06:15 +01:00
temporal NO-OP: whitespace 2020-01-14 00:52:24 +01:00
vamp-plugins Fix some clang-scan warnings 2020-01-27 03:31:49 +01:00
vamp-pyin
vfork
waveview NO-OP: whitespace 2020-01-14 00:52:24 +01:00
widgets Tweak ArdorIcon display-tool & re-order icons 2020-02-22 21:40:35 +01:00
zita-convolver Do not install static libs 2020-01-22 02:00:25 +01:00
zita-resampler Do not install static libs 2020-01-22 02:00:25 +01:00