diff options
-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 |