diff options
author | Carl Hetherington <carl@carlh.net> | 2011-01-16 19:34:00 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2011-01-16 19:34:00 +0000 |
commit | 113e6b505a27b3cbdb26f96b96c92cf35fe311dd (patch) | |
tree | 168b64fa93306375e42efc48ab5973684966c4e9 /gtk2_ardour/editor_drag.cc | |
parent | ad314252f4b578d268ed21d90969fc0a7102f4bb (diff) |
Fix memory leak.
git-svn-id: svn://localhost/ardour2/branches/3.0@8519 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/editor_drag.cc')
-rw-r--r-- | gtk2_ardour/editor_drag.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk2_ardour/editor_drag.cc b/gtk2_ardour/editor_drag.cc index 77c68faf96..014b91bb61 100644 --- a/gtk2_ardour/editor_drag.cc +++ b/gtk2_ardour/editor_drag.cc @@ -1132,7 +1132,7 @@ RegionMoveDrag::add_stateful_diff_commands_for_playlists (PlaylistSet const & pl for (PlaylistSet::const_iterator i = playlists.begin(); i != playlists.end(); ++i) { StatefulDiffCommand* c = new StatefulDiffCommand (*i); if (!c->empty()) { - _editor->session()->add_command (new StatefulDiffCommand (*i)); + _editor->session()->add_command (c); } else { delete c; } |