diff options
author | Martin Kiewitz | 2010-01-09 20:43:24 +0000 |
---|---|---|
committer | Martin Kiewitz | 2010-01-09 20:43:24 +0000 |
commit | c73927ee4cb070a026a05624086e4e3e95ef54c7 (patch) | |
tree | 71d6c3a2d2f9f61e4830fe573ca191868a9fc907 /engines | |
parent | 273da184ee4f63904e72e5aa9ae85daa93f5f95e (diff) | |
download | scummvm-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
Diffstat (limited to 'engines')
-rw-r--r-- | engines/sci/graphics/portrait.cpp | 3 |
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 |