diff options
author | Colin Snover | 2016-07-29 12:31:57 -0500 |
---|---|---|
committer | Colin Snover | 2016-08-01 10:37:14 -0500 |
commit | 10f9cb7023e2f68d5489b6f73b46a6e541f86b72 (patch) | |
tree | e2c3f2e2db703e8b422680dffdfcd1e29eabf925 /engines | |
parent | 2071196f4235c75ff020605f53b3d397532e841a (diff) | |
download | scummvm-rg350-10f9cb7023e2f68d5489b6f73b46a6e541f86b72.tar.gz scummvm-rg350-10f9cb7023e2f68d5489b6f73b46a6e541f86b72.tar.bz2 scummvm-rg350-10f9cb7023e2f68d5489b6f73b46a6e541f86b72.zip |
SCI32: Fix crash when destroying GfxTransitions32
Diffstat (limited to 'engines')
-rw-r--r-- | engines/sci/graphics/transitions32.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/sci/graphics/transitions32.cpp b/engines/sci/graphics/transitions32.cpp index 251e439cf5..bceb0fa84d 100644 --- a/engines/sci/graphics/transitions32.cpp +++ b/engines/sci/graphics/transitions32.cpp @@ -60,9 +60,9 @@ GfxTransitions32::GfxTransitions32(SegManager *segMan) : } GfxTransitions32::~GfxTransitions32() { - for (ShowStyleList::iterator it = _showStyles.begin(); it != _showStyles.end(); ++it) { - deleteShowStyle(it); - } + for (ShowStyleList::iterator it = _showStyles.begin(); + it != _showStyles.end(); + it = deleteShowStyle(it)); _scrolls.clear(); } |