aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorColin Snover2016-08-28 20:22:44 -0500
committerColin Snover2016-09-29 19:39:16 -0500
commit181676a0d515ab2ae4e7930bea7658e00f51d5d0 (patch)
tree0303ec2131a7fe7092bb884a529bd0b37386d64d /engines
parent327f8f829941e544ef6d97f5ff816d6190c499d1 (diff)
downloadscummvm-rg350-181676a0d515ab2ae4e7930bea7658e00f51d5d0.tar.gz
scummvm-rg350-181676a0d515ab2ae4e7930bea7658e00f51d5d0.tar.bz2
scummvm-rg350-181676a0d515ab2ae4e7930bea7658e00f51d5d0.zip
SCI32: Fix memory leak
CID 1361032.
Diffstat (limited to 'engines')
-rw-r--r--engines/sci/graphics/transitions32.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/sci/graphics/transitions32.cpp b/engines/sci/graphics/transitions32.cpp
index b93f0f7917..361c38e2b4 100644
--- a/engines/sci/graphics/transitions32.cpp
+++ b/engines/sci/graphics/transitions32.cpp
@@ -940,8 +940,9 @@ void GfxTransitions32::kernelSetScroll(const reg_t planeId, const int16 deltaX,
g_sci->_gfxFrameout->frameOut(true);
throttle();
}
- delete scroll;
}
+
+ delete scroll;
}
bool GfxTransitions32::processScroll(PlaneScroll &scroll) {