aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Sandulenko2020-01-06 13:24:02 +0100
committerEugene Sandulenko2020-01-06 13:24:02 +0100
commit046c1fc1c78f52245d8aca3c2ecf281ae7da104c (patch)
tree0cbeb77e05b18f63b0a8375aad364cb43fb652e7
parent1fea08e240499af5002e7907180857e6932d857f (diff)
downloadscummvm-rg350-046c1fc1c78f52245d8aca3c2ecf281ae7da104c.tar.gz
scummvm-rg350-046c1fc1c78f52245d8aca3c2ecf281ae7da104c.tar.bz2
scummvm-rg350-046c1fc1c78f52245d8aca3c2ecf281ae7da104c.zip
DIRECTOR: Plug memory leak
-rw-r--r--engines/director/images.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/engines/director/images.cpp b/engines/director/images.cpp
index 10d73accc1..bff1a6a7fc 100644
--- a/engines/director/images.cpp
+++ b/engines/director/images.cpp
@@ -149,6 +149,7 @@ BITDDecoder::~BITDDecoder() {
}
void BITDDecoder::destroy() {
+ delete _surface;
_surface = 0;
delete[] _palette;