From a00d8101c559ab5f436be4824d6024a091d00ab9 Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Thu, 10 Jul 2014 19:53:58 -0300 Subject: Fix memory leak on the Export Dialog The export dialog was being created but never free'd. Signed-off-by: Tomaz Canabrava Signed-off-by: Dirk Hohndel --- qt-ui/mainwindow.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'qt-ui') diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp index 55e4c4db7..4173c5f07 100644 --- a/qt-ui/mainwindow.cpp +++ b/qt-ui/mainwindow.cpp @@ -1291,6 +1291,6 @@ void MainWindow::turnOffNdlTts() void MainWindow::on_actionExport_triggered() { - DiveLogExportDialog *diveLogExport = new DiveLogExportDialog(this); - diveLogExport->show(); + DiveLogExportDialog diveLogExport; + diveLogExport.exec(); } -- cgit v1.2.3-70-g09d2