aboutsummaryrefslogtreecommitdiff
path: root/engines/prince
diff options
context:
space:
mode:
authorlukaslw2014-08-16 23:01:08 +0200
committerlukaslw2014-08-16 23:01:08 +0200
commit35c3d362b27c4e23d754e4c0fb9155b0640fc1b5 (patch)
tree80e8043c92a4b29c29e94ef550366b9876eb2ccb /engines/prince
parent9bda7c37c376a7c925a4b44184dddc952813c2d5 (diff)
downloadscummvm-rg350-35c3d362b27c4e23d754e4c0fb9155b0640fc1b5.tar.gz
scummvm-rg350-35c3d362b27c4e23d754e4c0fb9155b0640fc1b5.tar.bz2
scummvm-rg350-35c3d362b27c4e23d754e4c0fb9155b0640fc1b5.zip
PRINCE: dialogImage - memory leak fix
Diffstat (limited to 'engines/prince')
-rw-r--r--engines/prince/prince.cpp5
1 files changed, 5 insertions, 0 deletions
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() {