From 820031581886d38c93324617f14e764291b2154f Mon Sep 17 00:00:00 2001 From: Max Horn Date: Thu, 21 Nov 2002 15:21:21 +0000 Subject: gotta love creating objects on the stack :-) svn-id: r5666 --- common/main.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'common') 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[]) -- cgit v1.2.3