aboutsummaryrefslogtreecommitdiff
path: root/engines/fullpipe/scenes
diff options
context:
space:
mode:
authorColin Snover2017-11-14 20:48:26 -0600
committerEugene Sandulenko2017-11-18 22:35:12 +0100
commit073692fd5250ae6fb2224f791821c5bd225ba5f0 (patch)
tree69f215b63897daf182dc01b60d6c3a15bdfef4ae /engines/fullpipe/scenes
parent0e28f2be4776f2b581ce47865468bad20b84e547 (diff)
downloadscummvm-rg350-073692fd5250ae6fb2224f791821c5bd225ba5f0.tar.gz
scummvm-rg350-073692fd5250ae6fb2224f791821c5bd225ba5f0.tar.bz2
scummvm-rg350-073692fd5250ae6fb2224f791821c5bd225ba5f0.zip
FULLPIPE: Reduce chance of Scene leaks, remove unused SceneTag member
Diffstat (limited to 'engines/fullpipe/scenes')
-rw-r--r--engines/fullpipe/scenes/scene18and19.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/engines/fullpipe/scenes/scene18and19.cpp b/engines/fullpipe/scenes/scene18and19.cpp
index 7e26632cee..9181bc7d65 100644
--- a/engines/fullpipe/scenes/scene18and19.cpp
+++ b/engines/fullpipe/scenes/scene18and19.cpp
@@ -130,6 +130,7 @@ void scene19_setMovements(Scene *sc, int entranceId) {
void scene19_preload() {
for (SceneTagList::iterator s = g_fp->_gameProject->_sceneTagList->begin(); s != g_fp->_gameProject->_sceneTagList->end(); ++s) {
if (s->_sceneId == SC_18) {
+ delete s->_scene;
s->_scene = g_fp->_scene3;
break;