diff options
author | Olivier Goffart <ogoffart@trolltech.com> | 2010-04-01 09:23:54 (GMT) |
---|---|---|
committer | Olivier Goffart <ogoffart@trolltech.com> | 2010-04-01 09:23:54 (GMT) |
commit | 58332ca540035917fdda9ce1fb73b12cf80bda30 (patch) | |
tree | 2f6a2735ba77aa2d293ee94560b4e899f9ffb074 /src/script | |
parent | 71be952387a54a0e0b62434968f7abfb75bb04fa (diff) | |
download | Qt-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.cpp | 2 |
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); } |