summaryrefslogtreecommitdiffstats
path: root/src/script/api/qscriptclass.h
diff options
context:
space:
mode:
authorKent Hansen <kent.hansen@nokia.com>2010-11-09 08:20:36 (GMT)
committerKent Hansen <kent.hansen@nokia.com>2010-11-09 10:00:13 (GMT)
commit8aee86b8ce4700f48b8a30752cb2293860957bb7 (patch)
tree277d71ec3021aaba33108aa3dd660eebb0a1a434 /src/script/api/qscriptclass.h
parent6b8a95b2521d843ec2b3f7c787c15b92e4ea686f (diff)
downloadQt-8aee86b8ce4700f48b8a30752cb2293860957bb7.zip
Qt-8aee86b8ce4700f48b8a30752cb2293860957bb7.tar.gz
Qt-8aee86b8ce4700f48b8a30752cb2293860957bb7.tar.bz2
Fix GC-related crash in QScriptValue::setData()
Yet another missing API shim. When converting the QScriptValue to JSC, a JSCell may be allocated, which can cause the GC to trigger. If an identifier (JSC::Identifier) is then garbage collected, the destructor will try to remove itself from the currentIdentifierTable(). Because the API shim was missing, the identifier table was 0. It's difficult to create a bulletproof test for this case, but the attached test is a best effort (it crashes on my machine without the fix). Task-number: QTBUG-15144 Reviewed-by: Jedrzej Nowacki
Diffstat (limited to 'src/script/api/qscriptclass.h')
0 files changed, 0 insertions, 0 deletions