# HG changeset patch # User Chris Cannam # Date 1536333259 -3600 # Node ID 0e95c30d66809c7c782a7f7543aa182b698a2fd4 # Parent 636a5908cf8162749acacd394f7d25b6290af00c Avoid leaking dialogs diff -r 636a5908cf81 -r 0e95c30d6680 framework/MainWindowBase.cpp --- 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) {