[Scummvm-cvs-logs] SF.net SVN: scummvm: [22675] scummvm/trunk/graphics/paletteman.cpp
eriktorbjorn at users.sourceforge.net
eriktorbjorn at users.sourceforge.net
Sat May 27 04:56:00 CEST 2006
Revision: 22675
Author: eriktorbjorn
Date: 2006-05-27 04:55:03 -0700 (Sat, 27 May 2006)
ViewCVS: http://svn.sourceforge.net/scummvm/?rev=22675&view=rev
Log Message:
-----------
Should use delete[] instead of delete here, too. (I knew where the cursor
manager code was copied from. :-)
Modified Paths:
--------------
scummvm/trunk/graphics/paletteman.cpp
Modified: scummvm/trunk/graphics/paletteman.cpp
===================================================================
--- scummvm/trunk/graphics/paletteman.cpp 2006-05-27 11:51:17 UTC (rev 22674)
+++ scummvm/trunk/graphics/paletteman.cpp 2006-05-27 11:55:03 UTC (rev 22675)
@@ -87,7 +87,7 @@
if (pal->_size < size) {
// Could not re-use the old buffer. Create a new one.
- delete pal->_data;
+ delete[] pal->_data;
pal->_data = new byte[size];
pal->_size = size;
}
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