summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gtk2_ardour/hit.cc5
-rw-r--r--gtk2_ardour/hit.h16
2 files changed, 13 insertions, 8 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)
{
diff --git a/gtk2_ardour/hit.h b/gtk2_ardour/hit.h
index 3afdd91367..0ce1c93634 100644
--- a/gtk2_ardour/hit.h
+++ b/gtk2_ardour/hit.h
@@ -32,14 +32,14 @@ class Hit : public NoteBase
public:
typedef Evoral::Note<double> NoteType;
- Hit (
- MidiRegionView& region,
- ArdourCanvas::Group* group,
- double size,
- const boost::shared_ptr<NoteType> note = boost::shared_ptr<NoteType>(),
- bool with_events = true);
-
- void show ();
+ Hit (MidiRegionView& region,
+ ArdourCanvas::Group* group,
+ double size,
+ const boost::shared_ptr<NoteType> note = boost::shared_ptr<NoteType>(),
+ bool with_events = true);
+ ~Hit();
+
+ void show ();
void hide ();
ArdourCanvas::Coord x0 () const;