aboutsummaryrefslogtreecommitdiff
path: root/engines/cruise
diff options
context:
space:
mode:
authorPaul Gilbert2009-10-10 04:47:18 +0000
committerPaul Gilbert2009-10-10 04:47:18 +0000
commit6bbe30f44b6aab44c269fd7c7775146c8a9085ea (patch)
tree86988761a4b884c040de90d81f192260920594cc /engines/cruise
parentdf3fbd432de3d0bfc8ec689a5616b34103c63791 (diff)
downloadscummvm-rg350-6bbe30f44b6aab44c269fd7c7775146c8a9085ea.tar.gz
scummvm-rg350-6bbe30f44b6aab44c269fd7c7775146c8a9085ea.tar.bz2
scummvm-rg350-6bbe30f44b6aab44c269fd7c7775146c8a9085ea.zip
Game now completely starts up without memory leaks
svn-id: r44862
Diffstat (limited to 'engines/cruise')
-rw-r--r--engines/cruise/cell.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/cruise/cell.cpp b/engines/cruise/cell.cpp
index d185ddae56..65cc234bda 100644
--- a/engines/cruise/cell.cpp
+++ b/engines/cruise/cell.cpp
@@ -218,9 +218,9 @@ void removeCell(cellStruct *objPtr, int ovlNumber, int objectIdx, int objType, i
dx->prev = si->prev;
- // TODO: complelty wrong
- //freeMessageList(si);
-
+ // Free the entry
+ if (si->gfxPtr)
+ freeGfx(si->gfxPtr);
MemFree(si);
currentObj = dx;