diff framework/MainWindowBase.cpp @ 619:0e95c30d6680 import-audio-data

Avoid leaking dialogs
author Chris Cannam
date Fri, 07 Sep 2018 16:14:19 +0100
parents 636a5908cf81
children 22e455beee3b
line wrap: on
line diff
--- a/framework/MainWindowBase.cpp	Tue Sep 04 13:19:43 2018 +0100
+++ b/framework/MainWindowBase.cpp	Fri Sep 07 16:14:19 2018 +0100
@@ -1866,6 +1866,7 @@
                         (path, dialog->getFormat(),
                          getMainModel()->getSampleRate());
                 }
+                delete dialog;
             }
 
             if (model) {