aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTorbjörn Andersson2015-12-28 11:04:46 +0100
committerTorbjörn Andersson2015-12-28 11:05:36 +0100
commit9ec9bca25b1cc7efaec4587d5c71c65eb66022cf (patch)
tree130c6d4823c684c80bae372ec9e74e6884a36f3a
parentfe47fec521134ce9997a15f89afe9e588b989c83 (diff)
downloadscummvm-rg350-9ec9bca25b1cc7efaec4587d5c71c65eb66022cf.tar.gz
scummvm-rg350-9ec9bca25b1cc7efaec4587d5c71c65eb66022cf.tar.bz2
scummvm-rg350-9ec9bca25b1cc7efaec4587d5c71c65eb66022cf.zip
LAB: Fix small getFont() memory leak
-rw-r--r--engines/lab/resource.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/engines/lab/resource.cpp b/engines/lab/resource.cpp
index ba42e9a0ac..8883cefe10 100644
--- a/engines/lab/resource.cpp
+++ b/engines/lab/resource.cpp
@@ -70,6 +70,7 @@ TextFont *Resource::getFont(const Common::String fileName) {
dataFile->skip(4);
textfont->_data = new byte[textfont->_dataLength + 4];
dataFile->read(textfont->_data, textfont->_dataLength);
+ delete dataFile;
return textfont;
}