diff options
-rw-r--r-- | engines/sludge/freeze.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/engines/sludge/freeze.cpp b/engines/sludge/freeze.cpp index 57d7d0dbe8..2d8a7bcb06 100644 --- a/engines/sludge/freeze.cpp +++ b/engines/sludge/freeze.cpp @@ -249,6 +249,14 @@ void unfreeze(bool killImage) { frozenStuff = frozenStuff->next; overRegion = NULL; + + // free current frozen screen struct + if (killMe->backdropSurface.getPixels()) + killMe->backdropSurface.free(); + if (killMe->lightMapSurface.getPixels()) + killMe->lightMapSurface.free(); + if (killMe->zBufferImage.getPixels()) + killMe->zBufferImage.free(); delete killMe; killMe = NULL; |