aboutsummaryrefslogtreecommitdiff
path: root/engines/lastexpress/data/animation.cpp
diff options
context:
space:
mode:
authorDavid Turner2011-01-25 08:24:57 +0000
committerDavid Turner2011-01-25 08:24:57 +0000
commitb52859323c68fa87a167fed8af5c8f3f945e6cd8 (patch)
treeda7256517a685fc555217ee8ab871a7fea3b446d /engines/lastexpress/data/animation.cpp
parent6400659ead45000485ddfbeb22ba9d48f1b7bde2 (diff)
downloadscummvm-rg350-b52859323c68fa87a167fed8af5c8f3f945e6cd8.tar.gz
scummvm-rg350-b52859323c68fa87a167fed8af5c8f3f945e6cd8.tar.bz2
scummvm-rg350-b52859323c68fa87a167fed8af5c8f3f945e6cd8.zip
LASTEXPRESS: Fixed Memory Leak in Subtitles.
Also, fixed minor uninitialised read in animation event polling. svn-id: r55524
Diffstat (limited to 'engines/lastexpress/data/animation.cpp')
-rw-r--r--engines/lastexpress/data/animation.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/lastexpress/data/animation.cpp b/engines/lastexpress/data/animation.cpp
index d105a34f8c..7288889f09 100644
--- a/engines/lastexpress/data/animation.cpp
+++ b/engines/lastexpress/data/animation.cpp
@@ -286,7 +286,7 @@ void Animation::play() {
g_engine->_system->delayMillis(20);
// Handle right-click to interrupt animations
- Common::Event ev;
+ Common::Event ev = Common::Event();
while (g_engine->getEventManager()->pollEvent(ev)) {
if (ev.type == Common::EVENT_RBUTTONUP) {
// Stop audio