Skip to content

Commit

Permalink
FULLPIPE: Delete cursors in _cursorsArray in InputController destructor
Browse files Browse the repository at this point in the history
  • Loading branch information
bluegr committed Dec 19, 2016
1 parent 2eadb3e commit 704b483
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions engines/fullpipe/input.cpp
Expand Up @@ -56,6 +56,9 @@ InputController::~InputController() {
removeMessageHandler(126, -1);

g_fp->_inputController = 0;

for (int i = 0; i < _cursorsArray.size(); i++)
delete _cursorsArray[i];
}

void InputController::setInputDisabled(bool state) {
Expand Down

0 comments on commit 704b483

Please sign in to comment.