[Scummvm-cvs-logs] SF.net SVN: scummvm:[35498] scummvm/trunk/engines/groovie/font.cpp
jvprat at users.sourceforge.net
jvprat at users.sourceforge.net
Tue Dec 23 18:20:01 CET 2008
Revision: 35498
http://scummvm.svn.sourceforge.net/scummvm/?rev=35498&view=rev
Author: jvprat
Date: 2008-12-23 17:20:01 +0000 (Tue, 23 Dec 2008)
Log Message:
-----------
Fix a valgrind error by using the appropiate delete operator
Modified Paths:
--------------
scummvm/trunk/engines/groovie/font.cpp
Modified: scummvm/trunk/engines/groovie/font.cpp
===================================================================
--- scummvm/trunk/engines/groovie/font.cpp 2008-12-23 16:29:26 UTC (rev 35497)
+++ scummvm/trunk/engines/groovie/font.cpp 2008-12-23 17:20:01 UTC (rev 35498)
@@ -120,7 +120,7 @@
byte *data = new byte[width * height];
_sphinxfnt->read(data, width * height);
_syst->copyRectToScreen(data, width, xoffset, 16, width, height);
- delete data;
+ delete[] data;
return 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