[Scummvm-cvs-logs] SF.net SVN: scummvm:[39945] scummvm/trunk/engines/scumm/saveload.cpp

agent-q at users.sourceforge.net agent-q at users.sourceforge.net
Sun Apr 12 16:02:21 CEST 2009


Revision: 39945
          http://scummvm.svn.sourceforge.net/scummvm/?rev=39945&view=rev
Author:   agent-q
Date:     2009-04-12 14:02:20 +0000 (Sun, 12 Apr 2009)

Log Message:
-----------
Backporting fix from rev #39918: Memory leak when thumbnail header 
couldn't be skipped.

Revision Links:
--------------
    http://scummvm.svn.sourceforge.net/scummvm/?rev=39918&view=rev

Modified Paths:
--------------
    scummvm/trunk/engines/scumm/saveload.cpp

Modified: scummvm/trunk/engines/scumm/saveload.cpp
===================================================================
--- scummvm/trunk/engines/scumm/saveload.cpp	2009-04-11 21:38:41 UTC (rev 39944)
+++ scummvm/trunk/engines/scumm/saveload.cpp	2009-04-12 14:02:20 UTC (rev 39945)
@@ -680,8 +680,10 @@
 		return false;
 	}
 
-	if (!Graphics::skipThumbnailHeader(*in))
+	if (!Graphics::skipThumbnailHeader(*in)) {
+		delete in;
 		return false;
+	}
 
 	if (!loadInfos(in, stuff)) {
 		delete in;


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