From b82ec86994cfc6bf6cdc8780ba5a537644fa1fd3 Mon Sep 17 00:00:00 2001 From: David Capello Date: Tue, 18 Jan 2011 19:22:03 -0300 Subject: [PATCH] Fix bug in SpriteImpl::resetPalettes() using an invalid "end" iterator after erasing an element from the m_palettes collection. --- src/raster/sprite.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/raster/sprite.cpp b/src/raster/sprite.cpp index cf39c158e..15a3de3d0 100644 --- a/src/raster/sprite.cpp +++ b/src/raster/sprite.cpp @@ -841,6 +841,7 @@ void SpriteImpl::resetPalettes() while (it != end) { delete *it; // palette it = m_palettes.erase(it); + end = m_palettes.end(); } } }