Commit 12048b91 authored by Gunnar Sletta's avatar Gunnar Sletta Committed by Qt by Nokia
Browse files

Fix crash with AnimatedImage caused by race condition.


In QDeclarativePixmap::setImage() we deleted a QDeclPixmapData
and recreated a new one in a very short timespan and the new
texture factory was the same pointer as the deleted one, yet a
queued destroyed signal was still emitted. Depending on when the
queued connection was handled in the rendering thread, this would
cause problems with the value returned from textureForFactory.

Change-Id: Ibd785ca12667c99efb88b92689ae7ac4fa87c7ee
Reviewed-by: default avatarKim M. Kalland <kim.kalland@nokia.com>
parent c42ddc10
Showing with 23 additions and 4 deletions
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment