[Scummvm-cvs-logs] SF.net SVN: scummvm:[53747] scummvm/trunk/gui/dialog.cpp

bluddy at users.sourceforge.net bluddy at users.sourceforge.net
Sat Oct 23 23:30:40 CEST 2010


Revision: 53747
          http://scummvm.svn.sourceforge.net/scummvm/?rev=53747&view=rev
Author:   bluddy
Date:     2010-10-23 21:30:39 +0000 (Sat, 23 Oct 2010)

Log Message:
-----------
GUI: added close() call to Dialog::runModal()

This should prevent a small leak in the GuiManager when adding the dialog to the stack. Check for any regressions.

Modified Paths:
--------------
    scummvm/trunk/gui/dialog.cpp

Modified: scummvm/trunk/gui/dialog.cpp
===================================================================
--- scummvm/trunk/gui/dialog.cpp	2010-10-23 20:22:24 UTC (rev 53746)
+++ scummvm/trunk/gui/dialog.cpp	2010-10-23 21:30:39 UTC (rev 53747)
@@ -76,6 +76,8 @@
 	// Start processing events
 	g_gui.runLoop();
 
+	close();	// to prevent resource leak in GUI manager
+	
 	// Return the result code
 	return _result;
 }


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list