Fix possible memory leak.

svn-id: r42487
This commit is contained in:
Johannes Schickel 2009-07-14 18:15:07 +00:00
parent 3f1563c819
commit 96abaaea6d

View file

@ -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);