summaryrefslogtreecommitdiff
path: root/gtk2_ardour/ghostregion.cc
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2011-02-28 04:14:23 +0000
committerCarl Hetherington <carl@carlh.net>2011-02-28 04:14:23 +0000
commit9e5f5ed0ee6d885808d1f0e4a5d2e2abd52958f1 (patch)
tree8c3ad119d340a4cbc11c8a0225f503a98dc8236b /gtk2_ardour/ghostregion.cc
parent165a38e74e3829e156c8a18bfae58307c19d6404 (diff)
Fix a couple of memory leaks.
git-svn-id: svn://localhost/ardour2/branches/3.0@8987 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/ghostregion.cc')
-rw-r--r--gtk2_ardour/ghostregion.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk2_ardour/ghostregion.cc b/gtk2_ardour/ghostregion.cc
index 1ce5b69093..27ab4334a9 100644
--- a/gtk2_ardour/ghostregion.cc
+++ b/gtk2_ardour/ghostregion.cc
@@ -186,7 +186,7 @@ MidiGhostRegion::MidiGhostRegion(MidiStreamView& msv, TimeAxisView& source_tv, d
MidiGhostRegion::~MidiGhostRegion()
{
-
+ clear_events ();
}
MidiGhostRegion::Event::Event(ArdourCanvas::CanvasNoteEvent* e)
@@ -203,7 +203,7 @@ MidiGhostRegion::Note::Note(ArdourCanvas::CanvasNote* n, ArdourCanvas::Group* g)
MidiGhostRegion::Note::~Note()
{
-
+ delete rect;
}
void