Skip to content

Commit

Permalink
FULLPIPE: Plug more memory leaks
Browse files Browse the repository at this point in the history
  • Loading branch information
sev- committed Dec 12, 2016
1 parent 1a4580d commit 3653f03
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions engines/fullpipe/gfx.cpp
Expand Up @@ -603,6 +603,8 @@ void Picture::getDibInfo() {
_bitmap->decode((int32 *)(_paletteData ? _paletteData : g_fp->_globalPalette));

_bitmap->_pixels = 0;

delete s;
}

Bitmap *Picture::getPixelData() {
Expand Down
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
2 changes: 1 addition & 1 deletion engines/fullpipe/statics.cpp
Expand Up @@ -1539,7 +1539,7 @@ Movement::~Movement() {
for (uint i = 0; i < _dynamicPhases.size(); i++)
delete _framePosOffsets[i];

if (!_currMovement ) {
if (!_currMovement) {
if (_updateFlag1)
_dynamicPhases.remove_at(0);

Expand Down

0 comments on commit 3653f03

Please sign in to comment.