From 35c3d362b27c4e23d754e4c0fb9155b0640fc1b5 Mon Sep 17 00:00:00 2001 From: lukaslw Date: Sat, 16 Aug 2014 23:01:08 +0200 Subject: PRINCE: dialogImage - memory leak fix --- engines/prince/prince.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/engines/prince/prince.cpp b/engines/prince/prince.cpp index 4b1147626a..e5e78139cf 100644 --- a/engines/prince/prince.cpp +++ b/engines/prince/prince.cpp @@ -199,6 +199,11 @@ PrinceEngine::~PrinceEngine() { free(_shadowLine); free(_creditsData); + + if (_dialogImage != nullptr) { + _dialogImage->free(); + delete _dialogImage; + } } GUI::Debugger *PrinceEngine::getDebugger() { -- cgit v1.2.3