summaryrefslogtreecommitdiff
path: root/gtk2_ardour/hit.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2014-03-06 23:17:04 -0500
committerPaul Davis <paul@linuxaudiosystems.com>2014-03-06 23:17:04 -0500
commitfa5529b694ad4a75a9a1260a2c8416166a4ae7c1 (patch)
treebd93ad11d9eb8582c4fbac90e49bac1a9fe17f7d /gtk2_ardour/hit.cc
parent41c4c41eaa09a7d831988af828dd040499130bf1 (diff)
fix missing Hit destructor, which left polygons all over the canvas after deleting the Hit object(s)
Diffstat (limited to 'gtk2_ardour/hit.cc')
-rw-r--r--gtk2_ardour/hit.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/gtk2_ardour/hit.cc b/gtk2_ardour/hit.cc
index de63e187e4..feb8ca43db 100644
--- a/gtk2_ardour/hit.cc
+++ b/gtk2_ardour/hit.cc
@@ -39,6 +39,11 @@ Hit::Hit (MidiRegionView& region, Group* group, double size, const boost::shared
set_height (size);
}
+Hit::~Hit ()
+{
+ delete _polygon;
+}
+
void
Hit::move_event (double dx, double dy)
{