Q_INVOKABLE methods returning a QObject* --> QML engine will take ownership (JavaScriptOwnership).  If this is not the desired semantic, the ownership should be set manually to CppOwnership, I guess.