diff options
author | Aaron Kennedy <aaron.kennedy@nokia.com> | 2010-08-12 02:38:53 (GMT) |
---|---|---|
committer | Aaron Kennedy <aaron.kennedy@nokia.com> | 2010-08-12 02:38:53 (GMT) |
commit | ee7c3b576ced47d3b68da1913cdf6995144bddd2 (patch) | |
tree | fd0011bb4c7125c811a1acd7b5c65da4eed97a6c /src | |
parent | 59d36ea601aef6182cba0e0f5fc56cc102e29c59 (diff) | |
download | Qt-ee7c3b576ced47d3b68da1913cdf6995144bddd2.zip Qt-ee7c3b576ced47d3b68da1913cdf6995144bddd2.tar.gz Qt-ee7c3b576ced47d3b68da1913cdf6995144bddd2.tar.bz2 |
Only modify pixmap cache reply when protected by a mutex
QTBUG-12729
Diffstat (limited to 'src')
-rw-r--r-- | src/declarative/util/qdeclarativepixmapcache.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/declarative/util/qdeclarativepixmapcache.cpp b/src/declarative/util/qdeclarativepixmapcache.cpp index 9ced14f..de2de21 100644 --- a/src/declarative/util/qdeclarativepixmapcache.cpp +++ b/src/declarative/util/qdeclarativepixmapcache.cpp @@ -525,6 +525,7 @@ void QDeclarativePixmapReader::cancel(QDeclarativePixmapReply *reply) mutex.lock(); if (reply->loading) { cancelled.append(reply); + reply->data = 0; // XXX if (threadObject) threadObject->processJobs(); } else { @@ -738,7 +739,6 @@ void QDeclarativePixmapData::release() if (refCount == 0) { if (reply) { - reply->data = 0; reply->reader->cancel(reply); reply = 0; } |