Skip to content

Commit

Permalink
PRINCE: Animation::clear() update
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaslw committed Jul 31, 2014
1 parent d885372 commit 03b6b61
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions engines/prince/animation.cpp
Expand Up @@ -42,6 +42,10 @@ void Animation::clear() {
_frameList[i]._surface->free();
delete _frameList[i]._surface;
_frameList[i]._surface = nullptr;
if (_frameList[i]._compressedData != nullptr) {
free(_frameList[i]._compressedData);
_frameList[i]._compressedData = nullptr;
}
}
}

Expand Down

0 comments on commit 03b6b61

Please sign in to comment.