[Scummvm-cvs-logs] SF.net SVN: scummvm:[33897] scummvm/branches/branch-0-12-0/engines/gob/ mult_v2.cpp
drmccoy at users.sourceforge.net
drmccoy at users.sourceforge.net
Fri Aug 15 12:48:09 CEST 2008
Revision: 33897
http://scummvm.svn.sourceforge.net/scummvm/?rev=33897&view=rev
Author: drmccoy
Date: 2008-08-15 10:48:08 +0000 (Fri, 15 Aug 2008)
Log Message:
-----------
Fixing a segfault in the Bargon Attack menu (backport)
Modified Paths:
--------------
scummvm/branches/branch-0-12-0/engines/gob/mult_v2.cpp
Modified: scummvm/branches/branch-0-12-0/engines/gob/mult_v2.cpp
===================================================================
--- scummvm/branches/branch-0-12-0/engines/gob/mult_v2.cpp 2008-08-15 10:47:42 UTC (rev 33896)
+++ scummvm/branches/branch-0-12-0/engines/gob/mult_v2.cpp 2008-08-15 10:48:08 UTC (rev 33897)
@@ -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