summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAaron Kennedy <aaron.kennedy@nokia.com>2010-08-12 02:38:53 (GMT)
committerAaron Kennedy <aaron.kennedy@nokia.com>2010-08-12 02:38:53 (GMT)
commitee7c3b576ced47d3b68da1913cdf6995144bddd2 (patch)
treefd0011bb4c7125c811a1acd7b5c65da4eed97a6c /src
parent59d36ea601aef6182cba0e0f5fc56cc102e29c59 (diff)
downloadQt-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.cpp2
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;
}