[Scummvm-cvs-logs] CVS: scummvm/common main.cpp,1.17,1.18

Max Horn fingolfin at users.sourceforge.net
Thu Nov 21 07:22:02 CET 2002


Update of /cvsroot/scummvm/scummvm/common
In directory sc8-pr-cvs1:/tmp/cvs-serv9056

Modified Files:
	main.cpp 
Log Message:
gotta love creating objects on the stack :-)

Index: main.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/common/main.cpp,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -d -r1.17 -r1.18
--- main.cpp	14 Nov 2002 15:00:51 -0000	1.17
+++ main.cpp	21 Nov 2002 15:21:21 -0000	1.18
@@ -135,9 +135,8 @@
 	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[])





More information about the Scummvm-git-logs mailing list