diff options
author | Jordi Vilalta Prat | 2008-12-23 17:20:01 +0000 |
---|---|---|
committer | Jordi Vilalta Prat | 2008-12-23 17:20:01 +0000 |
commit | 71d879296b75d0c07277ba7b73c2b8823be8bc82 (patch) | |
tree | dc1a10362aff356e30cab6b7e7cf7f6d834d392a | |
parent | e27c46359526bdc2cdc1dddfbf5888cffac6f70a (diff) | |
download | scummvm-rg350-71d879296b75d0c07277ba7b73c2b8823be8bc82.tar.gz scummvm-rg350-71d879296b75d0c07277ba7b73c2b8823be8bc82.tar.bz2 scummvm-rg350-71d879296b75d0c07277ba7b73c2b8823be8bc82.zip |
Fix a valgrind error by using the appropiate delete operator
svn-id: r35498
-rw-r--r-- | engines/groovie/font.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/groovie/font.cpp b/engines/groovie/font.cpp index cabb7563a1..6b77984469 100644 --- a/engines/groovie/font.cpp +++ b/engines/groovie/font.cpp @@ -120,7 +120,7 @@ uint8 Font::printletter(char letter, uint16 xoffset) { 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; } |