summaryrefslogtreecommitdiffstats
path: root/qt-ui
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tomaz.canabrava@intel.com>2014-07-10 19:53:58 -0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-07-10 19:59:45 -0700
commita00d8101c559ab5f436be4824d6024a091d00ab9 (patch)
tree8fb65e08a39ae2905102b5d789350253318065c2 /qt-ui
parent31e0ec8696f589398859f0790b600bb65776401e (diff)
downloadsubsurface-a00d8101c559ab5f436be4824d6024a091d00ab9.tar.gz
Fix memory leak on the Export Dialog
The export dialog was being created but never free'd. Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui')
-rw-r--r--qt-ui/mainwindow.cpp4
1 files changed, 2 insertions, 2 deletions
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();
}