From 1f2be2bb40c81da884b8d437af72771c6c13157e Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Thu, 10 Nov 2016 23:03:51 +0100 Subject: DIRECTOR: Plug memory leak --- engines/director/images.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'engines/director') 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; -- cgit v1.2.3