aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4qobjectwrapper.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/qml/jsruntime/qv4qobjectwrapper.cpp')
-rw-r--r--src/qml/jsruntime/qv4qobjectwrapper.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qml/jsruntime/qv4qobjectwrapper.cpp b/src/qml/jsruntime/qv4qobjectwrapper.cpp
index 583aee7c66..e4ba9e7798 100644
--- a/src/qml/jsruntime/qv4qobjectwrapper.cpp
+++ b/src/qml/jsruntime/qv4qobjectwrapper.cpp
@@ -1255,7 +1255,7 @@ void QObjectWrapper::destroyObject(bool lastCall)
if (ddata && ddata->ownContext) {
Q_ASSERT(ddata->ownContext.data() == ddata->context);
ddata->ownContext->emitDestruction();
- ddata->ownContext = nullptr;
+ ddata->ownContext.reset();
ddata->context = nullptr;
}
// This object is notionally destroyed now
@@ -1270,7 +1270,7 @@ void QObjectWrapper::destroyObject(bool lastCall)
// to it.
ddata->jsWrapper.clear();
if (lastCall && ddata->propertyCache)
- ddata->propertyCache = nullptr;
+ ddata->propertyCache.reset();
}
}
}