[Scummvm-cvs-logs] SF.net SVN: scummvm:[42487] scummvm/trunk/graphics/font.cpp
lordhoto at users.sourceforge.net
lordhoto at users.sourceforge.net
Tue Jul 14 20:15:07 CEST 2009
Revision: 42487
http://scummvm.svn.sourceforge.net/scummvm/?rev=42487&view=rev
Author: lordhoto
Date: 2009-07-14 18:15:07 +0000 (Tue, 14 Jul 2009)
Log Message:
-----------
Fix possible memory leak.
Modified Paths:
--------------
scummvm/trunk/graphics/font.cpp
Modified: scummvm/trunk/graphics/font.cpp
===================================================================
--- scummvm/trunk/graphics/font.cpp 2009-07-14 18:14:20 UTC (rev 42486)
+++ scummvm/trunk/graphics/font.cpp 2009-07-14 18:15:07 UTC (rev 42487)
@@ -753,6 +753,7 @@
font = new NewFont(desc, data);
if (!font || stream.err()) {
+ delete font;
free(data->bits);
free(data->offset);
free(data->width);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list