aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Kiewitz2010-01-09 20:43:24 +0000
committerMartin Kiewitz2010-01-09 20:43:24 +0000
commitc73927ee4cb070a026a05624086e4e3e95ef54c7 (patch)
tree71d6c3a2d2f9f61e4830fe573ca191868a9fc907
parent273da184ee4f63904e72e5aa9ae85daa93f5f95e (diff)
downloadscummvm-rg350-c73927ee4cb070a026a05624086e4e3e95ef54c7.tar.gz
scummvm-rg350-c73927ee4cb070a026a05624086e4e3e95ef54c7.tar.bz2
scummvm-rg350-c73927ee4cb070a026a05624086e4e3e95ef54c7.zip
SCI: deleting _bitmaps and unlocking sync resource in kPortrait
svn-id: r47208
-rw-r--r--engines/sci/graphics/portrait.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/sci/graphics/portrait.cpp b/engines/sci/graphics/portrait.cpp
index 65f82022ef..d8ff2d005c 100644
--- a/engines/sci/graphics/portrait.cpp
+++ b/engines/sci/graphics/portrait.cpp
@@ -42,6 +42,7 @@ Portrait::Portrait(ResourceManager *resMan, Screen *screen, SciPalette *palette,
}
Portrait::~Portrait() {
+ delete[] _bitmaps;
}
void Portrait::init() {
@@ -159,6 +160,8 @@ void Portrait::doit(Common::Point position, uint16 resourceId, uint16 noun, uint
curPosition = _audio->getAudioPosition();
} while ((curPosition != -1) && (curPosition < timerPosition));
}
+
+ _resMan->unlockResource(syncResource);
}
// TODO: coordinate offset is missing...can't find it in the bitmap header nor in the main header