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(); } } }