From 046c1fc1c78f52245d8aca3c2ecf281ae7da104c Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Mon, 6 Jan 2020 13:24:02 +0100 Subject: DIRECTOR: Plug memory leak --- engines/director/images.cpp | 1 + 1 file changed, 1 insertion(+) 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; -- cgit v1.2.3