aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/items/qquickshadereffectsource_p.h
diff options
context:
space:
mode:
authorValery Volgutov <valery.volgutov@lge.com>2017-12-12 15:02:16 +0300
committerJaeyoon Jung <jaeyoon.jung@lge.com>2020-05-18 17:20:53 +0900
commit1c5de027d0c31d1d6697bd0557128d92207763d8 (patch)
tree1cf5fc74adb1e4c708ebba85dd392ef6ab184e1f /src/quick/items/qquickshadereffectsource_p.h
parent33941cb8a036145fbf0ef386680b4f98bbbe0fc1 (diff)
Fix for possible crash in QSGDefaultLayer::grab
When QQuickItem::setParentItem set to NULL, derefWindow can be called. And for it item QSGNode will be destroyed. If this item used for QQuickEffectShaderSource we will have access to invalid QSGNode when "live" flag is enabled. Change-Id: If785e5328a044ec9d2564a82361470f1b8091fc5 Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io> Reviewed-by: Andy Nichols <andy.nichols@qt.io>
Diffstat (limited to 'src/quick/items/qquickshadereffectsource_p.h')
-rw-r--r--src/quick/items/qquickshadereffectsource_p.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/quick/items/qquickshadereffectsource_p.h b/src/quick/items/qquickshadereffectsource_p.h
index fe419e5959..921038e49a 100644
--- a/src/quick/items/qquickshadereffectsource_p.h
+++ b/src/quick/items/qquickshadereffectsource_p.h
@@ -174,6 +174,7 @@ Q_SIGNALS:
private Q_SLOTS:
void sourceItemDestroyed(QObject *item);
void invalidateSceneGraph();
+ void sourceItemParentChanged(QQuickItem *parent);
protected:
void releaseResources() override;