From f33f2471815698f5a5fd603c508d924333b684df Mon Sep 17 00:00:00 2001 From: =?utf8?q?Mikko=20Kein=C3=A4nen?= Date: Fri, 29 Oct 2010 20:23:34 +0300 Subject: [PATCH] Small fix. --- src/emulauncher.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/emulauncher.cpp b/src/emulauncher.cpp index d876634..6e0af93 100644 --- a/src/emulauncher.cpp +++ b/src/emulauncher.cpp @@ -126,7 +126,7 @@ void EmuLauncher::launchEmu() { QMap mediaImages; QList mediaImageContainers; - Executable *exe; + Executable *exe = 0; try { if (!micTable || !micTable->model()) { throw EmuFrontException(tr("No search results available!")); @@ -224,7 +224,7 @@ void EmuLauncher::launchEmu() emuHelper->launch(exe, mediaImageContainers, selectedImages, list.count()); micTable->clearSelection(); } catch (EmuFrontException efe) { - delete exe; + if (exe) delete exe; qDeleteAll(mediaImageContainers); //qDeleteAll(mediaImages); these are already deleted along with containers QMessageBox::information(this, tr("Launching emulator"), -- 1.7.9.5