[Scummvm-cvs-logs] scummvm master -> 9d4216e1589c210da53de1c45f3cdf71fbb2ff00

eriktorbjorn eriktorbjorn at telia.com
Sun Feb 28 14:36:08 CET 2016


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:
9d4216e158 AGI: Fix small memory leak in Hercules font loader


Commit: 9d4216e1589c210da53de1c45f3cdf71fbb2ff00
    https://github.com/scummvm/scummvm/commit/9d4216e1589c210da53de1c45f3cdf71fbb2ff00
Author: Torbjörn Andersson (eriktorbjorn at users.sourceforge.net)
Date: 2016-02-28T14:34:22+01:00

Commit Message:
AGI: Fix small memory leak in Hercules font loader

Changed paths:
    engines/agi/font.cpp



diff --git a/engines/agi/font.cpp b/engines/agi/font.cpp
index 0171678..f9605e4 100644
--- a/engines/agi/font.cpp
+++ b/engines/agi/font.cpp
@@ -1232,6 +1232,7 @@ void GfxFont::loadFontHercules() {
 				fontData += 4; // skip the last 2 lines
 			}
 
+			free(rawData);
 		} else {
 			warning("Fontfile 'hgc_font': unexpected file size");
 		}






More information about the Scummvm-git-logs mailing list