aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--common/main.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/common/main.cpp b/common/main.cpp
index 331d48e827..26c6d6880b 100644
--- a/common/main.cpp
+++ b/common/main.cpp
@@ -135,9 +135,8 @@ static void launcherDialog(GameDetector &detector, OSystem *system)
extern OSystem *g_system;
g_system = system;
- Dialog *dlg = new LauncherDialog(g_gui, detector);
- dlg->runModal();
- delete dlg;
+ LauncherDialog dlg(g_gui, detector);
+ dlg.runModal();
}
int main(int argc, char *argv[])