summaryrefslogtreecommitdiffstats
path: root/recipes-qt/qt5/qtdeclarative/0001-Fix-QQmlExpression-leaking-QQmlError-objects.patch
diff options
context:
space:
mode:
authorMikko Gronoff <mikko.gronoff@qt.io>2017-04-20 08:30:19 +0300
committerMikko Gronoff <mikko.gronoff@qt.io>2017-04-20 08:30:19 +0300
commit046dfb7d3689006927fa788fb935a26c02b81b31 (patch)
tree2268e0a4120287c7fdaf675b8108ea5ada13a02a /recipes-qt/qt5/qtdeclarative/0001-Fix-QQmlExpression-leaking-QQmlError-objects.patch
parent34b9d9fa2750bce915991828e707d8cf595da289 (diff)
parent5f837b47f5c3e462f24cd5abf58ff6ef1dd04932 (diff)
downloadmeta-qt5-046dfb7d3689006927fa788fb935a26c02b81b31.tar.gz
Merge remote-tracking branch 'qtyocto/upstream/master' into 5.9
* upstream/master: qttools: add ptest qtwayland: fix initial window property values qtdeclarative: fix memory leaks Change-Id: Iaa0191e65a40a385b10c8b552fe791345aafdd6b
Diffstat (limited to 'recipes-qt/qt5/qtdeclarative/0001-Fix-QQmlExpression-leaking-QQmlError-objects.patch')
-rw-r--r--recipes-qt/qt5/qtdeclarative/0001-Fix-QQmlExpression-leaking-QQmlError-objects.patch35
1 files changed, 35 insertions, 0 deletions
diff --git a/recipes-qt/qt5/qtdeclarative/0001-Fix-QQmlExpression-leaking-QQmlError-objects.patch b/recipes-qt/qt5/qtdeclarative/0001-Fix-QQmlExpression-leaking-QQmlError-objects.patch
new file mode 100644
index 00000000..050a914e
--- /dev/null
+++ b/recipes-qt/qt5/qtdeclarative/0001-Fix-QQmlExpression-leaking-QQmlError-objects.patch
@@ -0,0 +1,35 @@
1From f9dcbf008b430aadd464985b7a618eca8173d264 Mon Sep 17 00:00:00 2001
2From: Robert Griebl <robert.griebl@pelagicore.com>
3Date: Thu, 23 Feb 2017 15:11:13 +0100
4Subject: [PATCH 1/3] Fix QQmlExpression leaking QQmlError objects
5MIME-Version: 1.0
6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit
8
9If the user doesn't clear any potential errors manually via clearError(),
10then do it automatically in the destructor. Found with valgrind.
11
12[ChangeLog][QtQml][QQmlExpression] Fixed memory leak
13
14Change-Id: If5b1181850c7463c939a7ba536d74e7054c53d60
15Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
16Signed-off-by: Gordan Markuš <gordan.markus@pelagicore.com>
17---
18 src/qml/qml/qqmlexpression.cpp | 1 +
19 1 file changed, 1 insertion(+)
20
21diff --git a/src/qml/qml/qqmlexpression.cpp b/src/qml/qml/qqmlexpression.cpp
22index 6afbd05..5cb3d4d 100644
23--- a/src/qml/qml/qqmlexpression.cpp
24+++ b/src/qml/qml/qqmlexpression.cpp
25@@ -200,6 +200,7 @@ QQmlExpression::QQmlExpression(QQmlContextData *ctxt, QObject *scope,
26 */
27 QQmlExpression::~QQmlExpression()
28 {
29+ clearError();
30 }
31
32 /*!
33--
342.9.3
35