[Scummvm-cvs-logs] SF.net SVN: scummvm:[40326] scummvm/trunk/common/array.h
fingolfin at users.sourceforge.net
fingolfin at users.sourceforge.net
Tue May 5 14:29:16 CEST 2009
Revision: 40326
http://scummvm.svn.sourceforge.net/scummvm/?rev=40326&view=rev
Author: fingolfin
Date: 2009-05-05 12:29:15 +0000 (Tue, 05 May 2009)
Log Message:
-----------
COMMON: Changed Array destructor to reset _storage and _size to 0 -- this helps to find 'Array used after being disposed' bugs
Modified Paths:
--------------
scummvm/trunk/common/array.h
Modified: scummvm/trunk/common/array.h
===================================================================
--- scummvm/trunk/common/array.h 2009-05-05 12:28:12 UTC (rev 40325)
+++ scummvm/trunk/common/array.h 2009-05-05 12:29:15 UTC (rev 40326)
@@ -71,6 +71,8 @@
~Array() {
delete[] _storage;
+ _storage = 0;
+ _capacity = _size = 0;
}
/** Appends element to the end of the array. */
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