aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/qqmlprivate.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/qml/qml/qqmlprivate.h')
-rw-r--r--src/qml/qml/qqmlprivate.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/qml/qml/qqmlprivate.h b/src/qml/qml/qqmlprivate.h
index 8111178320..27dac71571 100644
--- a/src/qml/qml/qqmlprivate.h
+++ b/src/qml/qml/qqmlprivate.h
@@ -62,6 +62,7 @@
#include <QtCore/qglobal.h>
#include <QtCore/qvariant.h>
#include <QtCore/qurl.h>
+#include <QPointer>
#include <QtCore/qmetaobject.h>
#include <QtCore/qdebug.h>
@@ -489,7 +490,7 @@ namespace QQmlPrivate
{
QObject *operator()(QQmlEngine *, QJSEngine *);
- QObject *m_object;
+ QPointer<QObject> m_object;
bool alreadyCalled = false;
};