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/jsruntime/qv4booleanobject.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/qml/jsruntime/qv4booleanobject.cpp') diff --git a/src/qml/jsruntime/qv4booleanobject.cpp b/src/qml/jsruntime/qv4booleanobject.cpp index 662ec64efb..51931da825 100644 --- a/src/qml/jsruntime/qv4booleanobject.cpp +++ b/src/qml/jsruntime/qv4booleanobject.cpp @@ -43,8 +43,8 @@ using namespace QV4; -DEFINE_OBJECT_VTABLE(BooleanCtor); -DEFINE_OBJECT_VTABLE(BooleanObject); +DEFINE_OBJECT_VTABLE_NO_DESTROY(BooleanCtor); +DEFINE_OBJECT_VTABLE_NO_DESTROY(BooleanObject); BooleanCtor::BooleanCtor(ExecutionContext *scope) : FunctionObject(scope, QStringLiteral("Boolean")) -- cgit v1.2.3