[Scummvm-cvs-logs] SF.net SVN: scummvm:[55390] scummvm/trunk/engines/sci/graphics/robot.cpp

lskovlun at users.sourceforge.net lskovlun at users.sourceforge.net
Fri Jan 21 20:52:53 CET 2011


Revision: 55390
          http://scummvm.svn.sourceforge.net/scummvm/?rev=55390&view=rev
Author:   lskovlun
Date:     2011-01-21 19:52:52 +0000 (Fri, 21 Jan 2011)

Log Message:
-----------
SCI: Fix robot memory leak

Modified Paths:
--------------
    scummvm/trunk/engines/sci/graphics/robot.cpp

Modified: scummvm/trunk/engines/sci/graphics/robot.cpp
===================================================================
--- scummvm/trunk/engines/sci/graphics/robot.cpp	2011-01-21 19:45:58 UTC (rev 55389)
+++ scummvm/trunk/engines/sci/graphics/robot.cpp	2011-01-21 19:52:52 UTC (rev 55390)
@@ -109,7 +109,7 @@
 
 void GfxRobot::draw(int x, int y) {
 
-	return; /* TODO: Remove once done */
+  	return; // TODO: Remove once done
 	// Play the audio of the robot file (for debugging)
 #if 0
 	if (_hasSound) {
@@ -164,6 +164,7 @@
 		g_system->copyRectToScreen(pixels, width, x, y, width, (int) (height * getFrameScaleFactor(i)));
 		g_system->updateScreen();
 		g_system->delayMillis(100);
+		delete[] pixels;
 	}
 
 	g_system->setPalette(savePal, 0, 256);


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