diff options
author | Kent Hansen <khansen@trolltech.com> | 2009-08-31 09:08:23 (GMT) |
---|---|---|
committer | Kent Hansen <khansen@trolltech.com> | 2009-08-31 09:11:37 (GMT) |
commit | 3216fe93a400980ec9d1a4eeafa1c700db56ded2 (patch) | |
tree | 6effa549f578d495d259d5b71ee1386fdcdde520 /src/script/api | |
parent | 734badac98a81b6a1937dc94ac52839c52eee8a9 (diff) | |
download | Qt-3216fe93a400980ec9d1a4eeafa1c700db56ded2.zip Qt-3216fe93a400980ec9d1a4eeafa1c700db56ded2.tar.gz Qt-3216fe93a400980ec9d1a4eeafa1c700db56ded2.tar.bz2 |
fix crash due to double deletion
Needed due to commit 3636e666528b72de79f8c7012690bb9e279f0863
Diffstat (limited to 'src/script/api')
-rw-r--r-- | src/script/api/qscriptvalue.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/script/api/qscriptvalue.cpp b/src/script/api/qscriptvalue.cpp index d5aaed7..eb0460a 100644 --- a/src/script/api/qscriptvalue.cpp +++ b/src/script/api/qscriptvalue.cpp @@ -2431,7 +2431,6 @@ void QScriptValue::setScriptClass(QScriptClass *scriptClass) QScriptObject *scriptObject = static_cast<QScriptObject*>(JSC::asObject(d->jscValue)); QScriptObjectDelegate *delegate = scriptObject->delegate(); if (!delegate || (delegate->type() != QScriptObjectDelegate::ClassObject)) { - delete delegate; delegate = new QScript::ClassObjectDelegate(scriptClass); scriptObject->setDelegate(delegate); } |