diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2014-03-06 23:17:04 -0500 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2014-03-06 23:17:04 -0500 |
commit | fa5529b694ad4a75a9a1260a2c8416166a4ae7c1 (patch) | |
tree | bd93ad11d9eb8582c4fbac90e49bac1a9fe17f7d /gtk2_ardour/hit.cc | |
parent | 41c4c41eaa09a7d831988af828dd040499130bf1 (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.cc | 5 |
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) { |