aboutsummaryrefslogtreecommitdiff
path: root/engines/director
diff options
context:
space:
mode:
authorEugene Sandulenko2016-11-10 23:03:51 +0100
committerEugene Sandulenko2016-11-10 23:03:51 +0100
commit1f2be2bb40c81da884b8d437af72771c6c13157e (patch)
tree94f34dbcce63cd65181cfa0f9438c378da52230f /engines/director
parentf7e01073077d7444a58d4ef770e202dafacf2740 (diff)
downloadscummvm-rg350-1f2be2bb40c81da884b8d437af72771c6c13157e.tar.gz
scummvm-rg350-1f2be2bb40c81da884b8d437af72771c6c13157e.tar.bz2
scummvm-rg350-1f2be2bb40c81da884b8d437af72771c6c13157e.zip
DIRECTOR: Plug memory leak
Diffstat (limited to 'engines/director')
-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 cd8223ae8e..0ec84af0d3 100644
--- a/engines/director/images.cpp
+++ b/engines/director/images.cpp
@@ -41,6 +41,7 @@ DIBDecoder::~DIBDecoder() {
}
void DIBDecoder::destroy() {
+ delete _surface;
_surface = 0;
delete[] _palette;