aboutsummaryrefslogtreecommitdiff
path: root/engines/lastexpress/entities/entity.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/lastexpress/entities/entity.cpp')
-rw-r--r--engines/lastexpress/entities/entity.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/engines/lastexpress/entities/entity.cpp b/engines/lastexpress/entities/entity.cpp
index 7e76123b5b..38b3dec09f 100644
--- a/engines/lastexpress/entities/entity.cpp
+++ b/engines/lastexpress/entities/entity.cpp
@@ -27,6 +27,8 @@
#include "lastexpress/entities/entity_intern.h"
+#include "lastexpress/data/sequence.h"
+
#include "lastexpress/game/action.h"
#include "lastexpress/game/entities.h"
#include "lastexpress/game/logic.h"
@@ -46,6 +48,15 @@ namespace LastExpress {
// EntityData
//////////////////////////////////////////////////////////////////////////
+EntityData::EntityCallData::~EntityCallData() {
+ SAFE_DELETE(frame);
+ SAFE_DELETE(frame1);
+
+ SAFE_DELETE(sequence);
+ SAFE_DELETE(sequence2);
+ SAFE_DELETE(sequence3);
+}
+
void EntityData::EntityCallData::saveLoadWithSerializer(Common::Serializer &s) {
for (uint i = 0; i < ARRAYSIZE(callbacks); i++)
s.syncAsByte(callbacks[i]);