PARALLACTION: Close Memory Leak in Big Red Adventure When Changing Location.

svn-id: r55225
This commit is contained in:
David Turner 2011-01-13 15:33:15 +00:00
parent 095384b90f
commit ecdd866117

View File

@ -301,6 +301,7 @@ void Parallaction_br::changeLocation() {
_countersNames = _disk->loadTable("counters"); _countersNames = _disk->loadTable("counters");
// TODO: maybe handle this into Disk // TODO: maybe handle this into Disk
delete _objects;
if (getPlatform() == Common::kPlatformPC) { if (getPlatform() == Common::kPlatformPC) {
_objects = _disk->loadObjects("icone.ico"); _objects = _disk->loadObjects("icone.ico");
} else { } else {