nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 16 lines 696 B view raw
1--- a/src/qml/jsruntime/qv4qobjectwrapper.cpp 2+++ b/src/qml/jsruntime/qv4qobjectwrapper.cpp 3@@ -1583,10 +1583,9 @@ 4 o->deleteLater(); 5 } else { 6 // If the object is C++-owned, we still have to release the weak reference we have 7- // to it. 8- ddata->jsWrapper.clear(); 9- if (lastCall && ddata->propertyCache) 10- ddata->propertyCache.reset(); 11+ // to it. If the "main" wrapper is not ours, we should leave it alone, though. 12+ if (ddata->jsWrapper.as<QObjectWrapper>() == this) 13+ ddata->jsWrapper.clear(); 14 } 15 } 16 }