diff options
author | Max Horn | 2002-11-21 15:21:21 +0000 |
---|---|---|
committer | Max Horn | 2002-11-21 15:21:21 +0000 |
commit | 820031581886d38c93324617f14e764291b2154f (patch) | |
tree | 99a413a7ce1f419dcb8b3b10a0d149d9e2e07a07 /common | |
parent | 9ff12dbc01d2a56aa29f1d6275876b8190e69ba5 (diff) | |
download | scummvm-rg350-820031581886d38c93324617f14e764291b2154f.tar.gz scummvm-rg350-820031581886d38c93324617f14e764291b2154f.tar.bz2 scummvm-rg350-820031581886d38c93324617f14e764291b2154f.zip |
gotta love creating objects on the stack :-)
svn-id: r5666
Diffstat (limited to 'common')
-rw-r--r-- | common/main.cpp | 5 |
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[]) |