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>
This commit is contained in:
Tomaz Canabrava 2014-07-10 19:53:58 -03:00 committed by Dirk Hohndel
parent 31e0ec8696
commit a00d8101c5

View file

@ -1291,6 +1291,6 @@ void MainWindow::turnOffNdlTts()
void MainWindow::on_actionExport_triggered()
{
DiveLogExportDialog *diveLogExport = new DiveLogExportDialog(this);
diveLogExport->show();
DiveLogExportDialog diveLogExport;
diveLogExport.exec();
}