aboutsummaryrefslogtreecommitdiff
path: root/engines/lastexpress/game/entities.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/lastexpress/game/entities.cpp')
-rw-r--r--engines/lastexpress/game/entities.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/engines/lastexpress/game/entities.cpp b/engines/lastexpress/game/entities.cpp
index 639470d502..e5219787c5 100644
--- a/engines/lastexpress/game/entities.cpp
+++ b/engines/lastexpress/game/entities.cpp
@@ -607,10 +607,8 @@ void Entities::resetSequences(EntityIndex entityIndex) const {
getData(entityIndex)->currentFrame = -1;
}
- // FIXME: in the original engine, the sequence pointers might just be copies,
- // make sure we free the associated memory at some point
- getData(entityIndex)->frame = NULL;
- getData(entityIndex)->frame1 = NULL;
+ SAFE_DELETE(getData(entityIndex)->frame);
+ SAFE_DELETE(getData(entityIndex)->frame1);
SAFE_DELETE(getData(entityIndex)->sequence);
SAFE_DELETE(getData(entityIndex)->sequence2);