aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTorbjörn Andersson2007-12-01 15:37:48 +0000
committerTorbjörn Andersson2007-12-01 15:37:48 +0000
commita77f6157dc1fce96e9c376aa2d17aeb209eaadfa (patch)
treecf77522c8ef1dd625b21ae0a2d1b276e5a550674
parent91c73e6c76722d4842ac4cec017d08128f1752b6 (diff)
downloadscummvm-rg350-a77f6157dc1fce96e9c376aa2d17aeb209eaadfa.tar.gz
scummvm-rg350-a77f6157dc1fce96e9c376aa2d17aeb209eaadfa.tar.bz2
scummvm-rg350-a77f6157dc1fce96e9c376aa2d17aeb209eaadfa.zip
Fixed Valgrind warning by freeing _lines with Memory::dealloc() insead of
delete. svn-id: r29680
-rw-r--r--engines/lure/surface.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/lure/surface.cpp b/engines/lure/surface.cpp
index 5e45bf9790..1b43b3e3ae 100644
--- a/engines/lure/surface.cpp
+++ b/engines/lure/surface.cpp
@@ -612,7 +612,7 @@ TalkDialog::TalkDialog(uint16 characterId, uint16 destCharacterId, uint16 active
}
TalkDialog::~TalkDialog() {
- delete _lines;
+ Memory::dealloc(_lines);
delete _surface;
}