summaryrefslogtreecommitdiffstats
path: root/src/script
diff options
context:
space:
mode:
authorOlivier Goffart <ogoffart@trolltech.com>2010-04-01 09:23:54 (GMT)
committerOlivier Goffart <ogoffart@trolltech.com>2010-04-01 09:23:54 (GMT)
commit58332ca540035917fdda9ce1fb73b12cf80bda30 (patch)
tree2f6a2735ba77aa2d293ee94560b4e899f9ffb074 /src/script
parent71be952387a54a0e0b62434968f7abfb75bb04fa (diff)
downloadQt-58332ca540035917fdda9ce1fb73b12cf80bda30.zip
Qt-58332ca540035917fdda9ce1fb73b12cf80bda30.tar.gz
Qt-58332ca540035917fdda9ce1fb73b12cf80bda30.tar.bz2
QScript: fix APIShim usage.
APIShim needs to be named, otherwise it is just a temporary and the destructor is called too early
Diffstat (limited to 'src/script')
-rw-r--r--src/script/api/qscriptstring.cpp2
1 files changed, 1 insertions, 1 deletions
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);
}