aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/util/qquickpixmapcache.cpp
diff options
context:
space:
mode:
authorAlbert Astals Cid <albert.astals@canonical.com>2015-06-30 10:35:23 +0200
committerAlbert Astals Cid <albert.astals@canonical.com>2015-06-30 11:03:10 +0000
commitf869d0e550f7fcc664c9280a09c0c75adf24669b (patch)
tree8ff6e48c09ed08d1b12de4d68fd087156df04543 /src/quick/util/qquickpixmapcache.cpp
parent572614f6bc58dbed0f7c335db714b43e8cb1f965 (diff)
Fix segfault if QQuickImageResponse actually returns an error string
Change-Id: Ieda5250157dea96bcd5a86d0617f1d64156242e7 Reviewed-by: Robin Burchell <robin.burchell@viroteck.net>
Diffstat (limited to 'src/quick/util/qquickpixmapcache.cpp')
-rw-r--r--src/quick/util/qquickpixmapcache.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/quick/util/qquickpixmapcache.cpp b/src/quick/util/qquickpixmapcache.cpp
index f36d06d00d..f65e544183 100644
--- a/src/quick/util/qquickpixmapcache.cpp
+++ b/src/quick/util/qquickpixmapcache.cpp
@@ -512,7 +512,7 @@ void QQuickPixmapReader::asyncResponseFinished(QQuickImageResponse *response)
}
mutex.lock();
if (!cancelled.contains(job))
- job->postReply(error, errorString, t->textureSize(), t);
+ job->postReply(error, errorString, t ? t->textureSize() : QSize(), t);
mutex.unlock();
}
response->deleteLater();