Skip to content

Commit

Permalink
PRINCE: dialogImage - memory leak fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaslw committed Aug 16, 2014
1 parent 9bda7c3 commit 35c3d36
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions engines/prince/prince.cpp
Expand Up @@ -199,6 +199,11 @@ PrinceEngine::~PrinceEngine() {
free(_shadowLine);

free(_creditsData);

if (_dialogImage != nullptr) {
_dialogImage->free();
delete _dialogImage;
}
}

GUI::Debugger *PrinceEngine::getDebugger() {
Expand Down

0 comments on commit 35c3d36

Please sign in to comment.