[Scummvm-cvs-logs] SF.net SVN: scummvm:[40302] scummvm/trunk/common/str.cpp

fingolfin at users.sourceforge.net fingolfin at users.sourceforge.net
Mon May 4 16:20:17 CEST 2009


Revision: 40302
          http://scummvm.svn.sourceforge.net/scummvm/?rev=40302&view=rev
Author:   fingolfin
Date:     2009-05-04 14:20:17 +0000 (Mon, 04 May 2009)

Log Message:
-----------
Fixed new[] / delete mismatch in Common::String

Modified Paths:
--------------
    scummvm/trunk/common/str.cpp

Modified: scummvm/trunk/common/str.cpp
===================================================================
--- scummvm/trunk/common/str.cpp	2009-05-04 14:14:11 UTC (rev 40301)
+++ scummvm/trunk/common/str.cpp	2009-05-04 14:20:17 UTC (rev 40302)
@@ -216,7 +216,7 @@
 			assert(g_refCountPool);
 			g_refCountPool->freeChunk(oldRefCount);
 		}
-		delete _str;
+		delete[] _str;
 
 		// Even though _str points to a freed memory block now,
 		// we do not change its value, because any code that calls


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