From: Albert Astals Cid Date: Fri, 14 Aug 2015 12:49:54 +0000 (+0200) Subject: Fix memory leak when using async image providers X-Git-Tag: v5.5.90+alpha1~37 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=653f4d6ce5851011e52c37b01ef81c7fbc16c26c;p=platform%2Fupstream%2Fqtdeclarative.git Fix memory leak when using async image providers Change-Id: I08392ab0a3edb1ac162110ebc349ad457800c788 Reviewed-by: Robin Burchell --- 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(job->url));