aboutsummaryrefslogtreecommitdiffstats
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
parent4876ea6a18ccdfd72014582aa5d50ab9f6b6ec9e (diff)
Fix memory leak when using async image providers
Change-Id: I08392ab0a3edb1ac162110ebc349ad457800c788 Reviewed-by: Robin Burchell <robin.burchell@viroteck.net>
-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 6f6e91ec99..a77bfd17d3 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));