Fix QVariantObject destruction
authorSimon Hausmann <simon.hausmann@digia.com>
Fri, 14 Jun 2013 14:08:48 +0000 (16:08 +0200)
committerLars Knoll <lars.knoll@digia.com>
Sat, 15 Jun 2013 13:25:00 +0000 (15:25 +0200)
commitfdc067dff4d8f2e6e70102a3f8ac56921f668986
tree484e476dc58efea1cef80bf411f4f9b5326daf40
parent8833ade28b06f9951a6ae671dfdfcaced98d06b8
Fix QVariantObject destruction

Make sure to call the VariantObject destructor from its destroy method,
in order to ensure that the ExecutionEngine::ScarceResourceData destructor
we inherit from is also called, which ensures that the refcount in the
QVariant it holds also drops correctly.

Fixes tst_qqmlecmascript::propertyVarCircular

Change-Id: I14df8e2f0d5be6f3049a295a527afa09e19f0ef2
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
src/qml/qml/v4/qv4variantobject.cpp