From 3bc9281c312ec237b6365c023c5ef060f5788a6b Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Thu, 7 Mar 2019 16:40:16 +0100 Subject: 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. --- gtk2_ardour/vca_time_axis.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'gtk2_ardour/vca_time_axis.cc') diff --git a/gtk2_ardour/vca_time_axis.cc b/gtk2_ardour/vca_time_axis.cc index d4394a65a2..32eacdfc76 100644 --- a/gtk2_ardour/vca_time_axis.cc +++ b/gtk2_ardour/vca_time_axis.cc @@ -122,6 +122,7 @@ VCATimeAxisView::VCATimeAxisView (PublicEditor& ed, Session* s, ArdourCanvas::Ca VCATimeAxisView::~VCATimeAxisView () { + delete automation_action_menu; } void -- cgit v1.2.3