[Scummvm-cvs-logs] scummvm master -> 33d90412c19002b4c892d5ac693c051cbe81905d

hkzlab hkzlabnet at gmail.com
Mon Feb 28 19:19:46 CET 2011


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
33d90412c1 SWORD2: Plug a memory leak in psx version


Commit: 33d90412c19002b4c892d5ac693c051cbe81905d
    https://github.com/scummvm/scummvm/commit/33d90412c19002b4c892d5ac693c051cbe81905d
Author: Fabio Battaglia (hkzlabnet at gmail.com)
Date: 2011-02-28T10:16:18-08:00

Commit Message:
SWORD2: Plug a memory leak in psx version

Free buffer used to resize psx sprite in drawTextObject

Changed paths:
    engines/sword2/animation.cpp



diff --git a/engines/sword2/animation.cpp b/engines/sword2/animation.cpp
index 2fafb70..e75e38a 100644
--- a/engines/sword2/animation.cpp
+++ b/engines/sword2/animation.cpp
@@ -237,6 +237,10 @@ void MoviePlayer::drawTextObject(uint32 index, byte *screen, uint16 pitch) {
 			src += width;
 			dst += pitch;
 		}
+
+		// Free buffer used to resize psx sprite
+		if (Sword2Engine::isPsx())
+			free(src);
 	}
 }
 






More information about the Scummvm-git-logs mailing list