diff options
author | Tim Mayberry <mojofunk@gmail.com> | 2013-07-31 19:38:32 +1000 |
---|---|---|
committer | Tim Mayberry <mojofunk@gmail.com> | 2013-10-21 10:10:40 +1000 |
commit | 53bf1a65e8b0ac701fb101233a127006a0e5c9a1 (patch) | |
tree | 61fe064fe7370b877a1940270053d07ddff5d87e | |
parent | 78e3864c5d065aff26be30cbb2b2cd3651d52ffc (diff) |
Fix two minor memory leaks in pending state dialog
-rw-r--r-- | gtk2_ardour/ardour_ui.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk2_ardour/ardour_ui.cc b/gtk2_ardour/ardour_ui.cc index 3ee2c95689..ec911a4fcd 100644 --- a/gtk2_ardour/ardour_ui.cc +++ b/gtk2_ardour/ardour_ui.cc @@ -3737,8 +3737,8 @@ ARDOUR_UI::session_dialog (std::string msg) int ARDOUR_UI::pending_state_dialog () { - HBox* hbox = new HBox(); - Image* image = new Image (Stock::DIALOG_QUESTION, ICON_SIZE_DIALOG); + HBox* hbox = manage (new HBox()); + Image* image = manage (new Image (Stock::DIALOG_QUESTION, ICON_SIZE_DIALOG)); ArdourDialog dialog (_("Crash Recovery"), true); Label message (string_compose (_("\ This session appears to have been in the\n\ |