From 4427576fe548b6f9f8acba6a5ac3082fbbb99724 Mon Sep 17 00:00:00 2001 From: Lars Knoll Date: Thu, 3 Apr 2014 13:00:49 +0200 Subject: 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 --- src/qml/qml/qqmlxmlhttprequest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/qml/qml/qqmlxmlhttprequest.cpp') diff --git a/src/qml/qml/qqmlxmlhttprequest.cpp b/src/qml/qml/qqmlxmlhttprequest.cpp index d89dc92b68..1a8564d111 100644 --- a/src/qml/qml/qqmlxmlhttprequest.cpp +++ b/src/qml/qml/qqmlxmlhttprequest.cpp @@ -302,7 +302,7 @@ public: }; -DEFINE_OBJECT_VTABLE(NodePrototype); +DEFINE_OBJECT_VTABLE_NO_DESTROY(NodePrototype); class Node : public Object { @@ -1696,7 +1696,7 @@ struct QQmlXMLHttpRequestCtor : public FunctionObject Object *proto; }; -DEFINE_OBJECT_VTABLE(QQmlXMLHttpRequestCtor); +DEFINE_OBJECT_VTABLE_NO_DESTROY(QQmlXMLHttpRequestCtor); void QQmlXMLHttpRequestCtor::setupProto() { -- cgit v1.2.3