diff options
author | Thomas Fach-Pedersen | 2014-06-06 17:31:14 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2016-09-29 22:33:37 +0200 |
commit | c8f5ded6d94863e3c1deb58961e543703bc934f8 (patch) | |
tree | 1f29ba02b53fc35f8c96d98fdfd6cd4c729ec3d1 /engines/bladerunner | |
parent | 4b181e4bed3af7b7e32a8d4c9209d81ece366554 (diff) | |
download | scummvm-rg350-c8f5ded6d94863e3c1deb58961e543703bc934f8.tar.gz scummvm-rg350-c8f5ded6d94863e3c1deb58961e543703bc934f8.tar.bz2 scummvm-rg350-c8f5ded6d94863e3c1deb58961e543703bc934f8.zip |
BLADERUNNER: SliceAnimation: Avoid using potentially uninitialized variable in destructor
Diffstat (limited to 'engines/bladerunner')
-rw-r--r-- | engines/bladerunner/slice_animations.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/bladerunner/slice_animations.cpp b/engines/bladerunner/slice_animations.cpp index b17e5173ae..6d0347c476 100644 --- a/engines/bladerunner/slice_animations.cpp +++ b/engines/bladerunner/slice_animations.cpp @@ -94,7 +94,7 @@ bool SliceAnimations::open(const Common::String &name) { } SliceAnimations::~SliceAnimations() { - for (uint32 i = 0; i != _pageCount; ++i) + for (uint32 i = 0; i != _pages.size(); ++i) free(_pages[i]._data); } |