diff options
author | Robin Gareus <robin@gareus.org> | 2019-03-07 16:40:16 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2019-03-07 23:50:32 +0100 |
commit | 3bc9281c312ec237b6365c023c5ef060f5788a6b (patch) | |
tree | 12969680c5f11c2216bc3746f701c6906f8a2b21 /gtk2_ardour/editor.h | |
parent | 204d7bf76ccccadea68a7bd3c8797b451a5c2971 (diff) |
Fix some Gtk::Menu related memory leaks
A Gtk::manage()d widget will be deleted when its parent container
is destroyed. Top-level context menus are not inside a container and
hence need to be manually deallocated.
This adds explicit delete calls for menus where there is a
member variable reference to the Menu.
Diffstat (limited to 'gtk2_ardour/editor.h')
-rw-r--r-- | gtk2_ardour/editor.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk2_ardour/editor.h b/gtk2_ardour/editor.h index 2931344195..ad0427fd62 100644 --- a/gtk2_ardour/editor.h +++ b/gtk2_ardour/editor.h @@ -953,7 +953,7 @@ private: static double timebar_height; guint32 visible_timebars; - Gtk::Menu *editor_ruler_menu; + Gtk::Menu* editor_ruler_menu; ArdourCanvas::Rectangle* tempo_bar; ArdourCanvas::Rectangle* meter_bar; |