aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}