[Scummvm-cvs-logs] SF.net SVN: scummvm:[33896] scummvm/trunk/engines/gob/mult_v2.cpp

drmccoy at users.sourceforge.net drmccoy at users.sourceforge.net
Fri Aug 15 12:47:43 CEST 2008


Revision: 33896
          http://scummvm.svn.sourceforge.net/scummvm/?rev=33896&view=rev
Author:   drmccoy
Date:     2008-08-15 10:47:42 +0000 (Fri, 15 Aug 2008)

Log Message:
-----------
Fixing a segfault in the Bargon Attack menu

Modified Paths:
--------------
    scummvm/trunk/engines/gob/mult_v2.cpp

Modified: scummvm/trunk/engines/gob/mult_v2.cpp
===================================================================
--- scummvm/trunk/engines/gob/mult_v2.cpp	2008-08-15 09:14:51 UTC (rev 33895)
+++ scummvm/trunk/engines/gob/mult_v2.cpp	2008-08-15 10:47:42 UTC (rev 33896)
@@ -510,10 +510,11 @@
 	if (!_animSurf) {
 		int16 width, height;
 
-		for (int i = 0; i < _objCount; i++) {
-			delete _objects[i].pPosX;
-			delete _objects[i].pPosY;
-		}
+		if (_objects)
+			for (int i = 0; i < _objCount; i++) {
+				delete _objects[i].pPosX;
+				delete _objects[i].pPosY;
+			}
 
 		delete[] _objects;
 	


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