aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime
diff options
context:
space:
mode:
authorTarja Sundqvist <[email protected]>2024-11-20 15:56:37 +0200
committerTarja Sundqvist <[email protected]>2024-11-20 15:56:37 +0200
commitde625ea60fa8eb030c3348710a96b37f2281ae0f (patch)
treec50b9fbac603d9efad0374a18c906ba14ced9e2b /src/qml/jsruntime
parentabe4729ea8db32124c36dc33fc32eb629df03043 (diff)
parent73eeb35f09fd1ea846bb0f5ce507316f587fda9f (diff)
Merge tag 'v5.15.17-lts' into tqtc/lts-5.15-opensource5.15
Qt 5.15.17-lts release Change-Id: I85da10a6f1030e50730c7aaee4c71ae861f1ecc4
Diffstat (limited to 'src/qml/jsruntime')
-rw-r--r--src/qml/jsruntime/qv4qobjectwrapper.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/jsruntime/qv4qobjectwrapper.cpp b/src/qml/jsruntime/qv4qobjectwrapper.cpp
index 94613598af..e86482562b 100644
--- a/src/qml/jsruntime/qv4qobjectwrapper.cpp
+++ b/src/qml/jsruntime/qv4qobjectwrapper.cpp
@@ -1153,7 +1153,7 @@ void QObjectWrapper::destroyObject(bool lastCall)
if (!h->object()->parent() && !ddata->indestructible) {
if (ddata && ddata->ownContext) {
Q_ASSERT(ddata->ownContext == ddata->context);
- ddata->ownContext->emitDestruction();
+ ddata->ownContext->deepClearContextObject(h->object());
ddata->ownContext = nullptr;
ddata->context = nullptr;
}