diff options
author | Tomaz Canabrava <tomaz.canabrava@intel.com> | 2014-07-10 19:53:58 -0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-07-10 19:59:45 -0700 |
commit | a00d8101c559ab5f436be4824d6024a091d00ab9 (patch) | |
tree | 8fb65e08a39ae2905102b5d789350253318065c2 | |
parent | 31e0ec8696f589398859f0790b600bb65776401e (diff) | |
download | subsurface-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>
-rw-r--r-- | qt-ui/mainwindow.cpp | 4 |
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(); } |