summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlbert Astals Cid <albert.astals@canonical.com>2015-08-14 14:49:54 +0200
committerAlbert Astals Cid <albert.astals@canonical.com>2015-08-19 10:18:34 +0000
commit653f4d6ce5851011e52c37b01ef81c7fbc16c26c (patch)
tree20069f6773d0afda938b0923268f864242554b7a /src
parent4876ea6a18ccdfd72014582aa5d50ab9f6b6ec9e (diff)
downloadqtdeclarative-653f4d6ce5851011e52c37b01ef81c7fbc16c26c.tar.gz
qtdeclarative-653f4d6ce5851011e52c37b01ef81c7fbc16c26c.tar.bz2
qtdeclarative-653f4d6ce5851011e52c37b01ef81c7fbc16c26c.zip
Fix memory leak when using async image providers
Change-Id: I08392ab0a3edb1ac162110ebc349ad457800c788 Reviewed-by: Robin Burchell <robin.burchell@viroteck.net>
Diffstat (limited to 'src')
-rw-r--r--src/quick/util/qquickpixmapcache.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/quick/util/qquickpixmapcache.cpp b/src/quick/util/qquickpixmapcache.cpp
index 6f6e91ec9..a77bfd17d 100644
--- a/src/quick/util/qquickpixmapcache.cpp
+++ b/src/quick/util/qquickpixmapcache.cpp
@@ -579,6 +579,7 @@ void QQuickPixmapReader::processJobs()
if (asyncResponse) {
asyncResponses.remove(asyncResponse);
asyncResponse->cancel();
+ asyncResponse->deleteLater();
}
}
PIXMAP_PROFILE(pixmapStateChanged<QQuickProfiler::PixmapLoadingError>(job->url));