From fa5529b694ad4a75a9a1260a2c8416166a4ae7c1 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Thu, 6 Mar 2014 23:17:04 -0500 Subject: fix missing Hit destructor, which left polygons all over the canvas after deleting the Hit object(s) --- gtk2_ardour/hit.cc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'gtk2_ardour/hit.cc') 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) { -- cgit v1.2.3