aboutsummaryrefslogtreecommitdiff
path: root/graphics/font.cpp
diff options
context:
space:
mode:
authorJohannes Schickel2009-07-14 18:15:07 +0000
committerJohannes Schickel2009-07-14 18:15:07 +0000
commit96abaaea6d06dae9bc1a48dc3b3afc936a92468b (patch)
tree940fa3202b9441516b9675e13977a3830f36e3ad /graphics/font.cpp
parent3f1563c8196da151f46f110d8a4ed1b7bffb36f0 (diff)
downloadscummvm-rg350-96abaaea6d06dae9bc1a48dc3b3afc936a92468b.tar.gz
scummvm-rg350-96abaaea6d06dae9bc1a48dc3b3afc936a92468b.tar.bz2
scummvm-rg350-96abaaea6d06dae9bc1a48dc3b3afc936a92468b.zip
Fix possible memory leak.
svn-id: r42487
Diffstat (limited to 'graphics/font.cpp')
-rw-r--r--graphics/font.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/graphics/font.cpp b/graphics/font.cpp
index e0c9fdecf4..bfc6dea0c1 100644
--- a/graphics/font.cpp
+++ b/graphics/font.cpp
@@ -753,6 +753,7 @@ NewFont *NewFont::loadFromCache(Common::SeekableReadStream &stream) {
font = new NewFont(desc, data);
if (!font || stream.err()) {
+ delete font;
free(data->bits);
free(data->offset);
free(data->width);