[Scummvm-cvs-logs] SF.net SVN: scummvm:[53873] scummvm/trunk/backends/platform/psp/ image_viewer.cpp
Bluddy at users.sourceforge.net
Bluddy at users.sourceforge.net
Wed Oct 27 13:09:03 CEST 2010
Revision: 53873
http://scummvm.svn.sourceforge.net/scummvm/?rev=53873&view=rev
Author: Bluddy
Date: 2010-10-27 11:09:03 +0000 (Wed, 27 Oct 2010)
Log Message:
-----------
PSP: Fixed ImageViewer code to deallocate TimedMessageDialog
Not deallocating it before loading the next image causes fragmentation in memory which eventually prevents big things from being loaded into memory.
Modified Paths:
--------------
scummvm/trunk/backends/platform/psp/image_viewer.cpp
Modified: scummvm/trunk/backends/platform/psp/image_viewer.cpp
===================================================================
--- scummvm/trunk/backends/platform/psp/image_viewer.cpp 2010-10-27 09:47:18 UTC (rev 53872)
+++ scummvm/trunk/backends/platform/psp/image_viewer.cpp 2010-10-27 11:09:03 UTC (rev 53873)
@@ -145,8 +145,10 @@
_visible = true;
setViewerButtons(true);
- GUI::TimedMessageDialog dialog("Image Viewer", 1000);
- dialog.runModal();
+ { // so dialog goes out of scope, destroying all allocations
+ GUI::TimedMessageDialog dialog("Image Viewer", 1000);
+ dialog.runModal();
+ }
runLoop(); // only listen to viewer events
} else { // we were asked to make invisible or failed to load
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