aboutsummaryrefslogtreecommitdiff
path: root/engines/agi
diff options
context:
space:
mode:
authorTorbjörn Andersson2016-02-28 14:34:22 +0100
committerTorbjörn Andersson2016-02-28 14:34:22 +0100
commit9d4216e1589c210da53de1c45f3cdf71fbb2ff00 (patch)
tree0c4a761e04b2800885b7dbe9cade1638e89ea172 /engines/agi
parent0caef5d8d029cc497c3ea9996628542b9a6b4cf3 (diff)
downloadscummvm-rg350-9d4216e1589c210da53de1c45f3cdf71fbb2ff00.tar.gz
scummvm-rg350-9d4216e1589c210da53de1c45f3cdf71fbb2ff00.tar.bz2
scummvm-rg350-9d4216e1589c210da53de1c45f3cdf71fbb2ff00.zip
AGI: Fix small memory leak in Hercules font loader
Diffstat (limited to 'engines/agi')
-rw-r--r--engines/agi/font.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/engines/agi/font.cpp b/engines/agi/font.cpp
index 017167850e..f9605e4a3d 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");
}