diff options
author | Lars Knoll <lars.knoll@digia.com> | 2014-04-03 13:00:49 +0200 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@digia.com> | 2014-07-22 13:48:53 +0200 |
commit | 4427576fe548b6f9f8acba6a5ac3082fbbb99724 (patch) | |
tree | 309f80779da95f337dd869e1990ffd4f0bb9b724 /src/qml/qml/qqmlcontextwrapper.cpp | |
parent | 08a3c0edeb3cdfa15a9fecdfb4c7c1ab82227437 (diff) |
Avoid calling destroy() on most objects
The method is now optional, and we can simply avoid
calling it if all members an object has are themselves
garbage collected.
Change-Id: If560fce051908bcc10409ead1a7d8a5bd5fa71d2
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/qml/qml/qqmlcontextwrapper.cpp')
-rw-r--r-- | src/qml/qml/qqmlcontextwrapper.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/qml/qqmlcontextwrapper.cpp b/src/qml/qml/qqmlcontextwrapper.cpp index a5574b706a..1480625974 100644 --- a/src/qml/qml/qqmlcontextwrapper.cpp +++ b/src/qml/qml/qqmlcontextwrapper.cpp @@ -437,7 +437,7 @@ ReturnedValue QmlContextWrapper::qmlSingletonWrapper(QV8Engine *v8, const String return QJSValuePrivate::get(siinfo->scriptApi(e))->getValue(engine()); } -DEFINE_OBJECT_VTABLE(QQmlIdObjectsArray); +DEFINE_OBJECT_VTABLE_NO_DESTROY(QQmlIdObjectsArray); QQmlIdObjectsArray::QQmlIdObjectsArray(ExecutionEngine *engine, QmlContextWrapper *contextWrapper) : Object(engine) |