aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/sword2/animation.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/sword2/animation.cpp b/engines/sword2/animation.cpp
index 2fafb70fea..e75e38ad81 100644
--- a/engines/sword2/animation.cpp
+++ b/engines/sword2/animation.cpp
@@ -237,6 +237,10 @@ void MoviePlayer::drawTextObject(uint32 index, byte *screen, uint16 pitch) {
src += width;
dst += pitch;
}
+
+ // Free buffer used to resize psx sprite
+ if (Sword2Engine::isPsx())
+ free(src);
}
}