From 58332ca540035917fdda9ce1fb73b12cf80bda30 Mon Sep 17 00:00:00 2001 From: Olivier Goffart Date: Thu, 1 Apr 2010 11:23:54 +0200 Subject: QScript: fix APIShim usage. APIShim needs to be named, otherwise it is just a temporary and the destructor is called too early --- src/script/api/qscriptstring.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/script/api/qscriptstring.cpp b/src/script/api/qscriptstring.cpp index d0b0ffd..8c7c30c 100644 --- a/src/script/api/qscriptstring.cpp +++ b/src/script/api/qscriptstring.cpp @@ -94,7 +94,7 @@ QScriptString::~QScriptString() case QScriptStringPrivate::HeapAllocated: if (d->engine && (d->ref == 1)) { // Make sure the identifier is removed from the correct engine. - QScript::APIShim(d->engine); + QScript::APIShim shim(d->engine); d->identifier = JSC::Identifier(); d->engine->unregisterScriptString(d); } -- cgit v0.12