[Scummvm-cvs-logs] SF.net SVN: scummvm: [20945] residual/trunk/walkplane.h
marcus_c at users.sourceforge.net
marcus_c at users.sourceforge.net
Sun Feb 26 12:20:05 CET 2006
Revision: 20945
Author: marcus_c
Date: 2006-02-26 12:19:43 -0800 (Sun, 26 Feb 2006)
ViewCVS: http://svn.sourceforge.net/scummvm?rev=20945&view=rev
Log Message:
-----------
Plugged one more memory leak: Delete the vertices of a Sector when it is deleted.
Modified Paths:
--------------
residual/trunk/walkplane.h
Modified: residual/trunk/walkplane.h
===================================================================
--- residual/trunk/walkplane.h 2006-02-26 20:04:25 UTC (rev 20944)
+++ residual/trunk/walkplane.h 2006-02-26 20:19:43 UTC (rev 20945)
@@ -27,6 +27,9 @@
class Sector {
public:
+ Sector() : _vertices(0) {}
+ ~Sector() { if(_vertices) delete[] _vertices; }
+
void load(TextSplitter &ts);
void setVisible(bool visible);
More information about the Scummvm-git-logs
mailing list