[Scummvm-cvs-logs] scummvm master -> 8ca3316e3a19b875327fcf97c854445ec9b925d2
sev-
sev at scummvm.org
Tue Jun 10 18:38:36 CEST 2014
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
8ca3316e3a FULLPIPE: Plug potential resource leak. CID 1208906
Commit: 8ca3316e3a19b875327fcf97c854445ec9b925d2
https://github.com/scummvm/scummvm/commit/8ca3316e3a19b875327fcf97c854445ec9b925d2
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2014-06-10T19:32:47+03:00
Commit Message:
FULLPIPE: Plug potential resource leak. CID 1208906
Changed paths:
engines/fullpipe/scenes/scene04.cpp
diff --git a/engines/fullpipe/scenes/scene04.cpp b/engines/fullpipe/scenes/scene04.cpp
index 0a69335..fd1ecec 100644
--- a/engines/fullpipe/scenes/scene04.cpp
+++ b/engines/fullpipe/scenes/scene04.cpp
@@ -633,6 +633,7 @@ MessageQueue *sceneHandler04_kozFly5(StaticANIObject *ani, double phase) {
mq1->addExCommandToEnd(mq2->getExCommandByIndex(0)->createClone());
delete mq2;
+ mq2 = 0;
ExCommand *ex = new ExCommand(ANI_KOZAWKA, 1, MV_KZW_STANDUP, 0, 0, 0, 1, 0, 0, 0);
ex->_excFlags |= 2;
@@ -662,6 +663,9 @@ MessageQueue *sceneHandler04_kozFly5(StaticANIObject *ani, double phase) {
mq1->addExCommandToEnd(ex);
}
+ if (mq2)
+ delete mq2;
+
return mq1;
}
More information about the Scummvm-git-logs
mailing list