Fix crashes in some worker threads auto tests
authorSimon Hausmann <simon.hausmann@digia.com>
Tue, 28 May 2013 07:46:12 +0000 (09:46 +0200)
committerLars Knoll <lars.knoll@digia.com>
Tue, 28 May 2013 10:36:10 +0000 (12:36 +0200)
commit59ae55f3fac1d95ce4e47f24a74ea32397511868
treeb3639c8b334ffdd4ca95ffb92d3b7f6f02eafeed
parente95c5433de5d22d649f479e3a4117046e21b2ffb
Fix crashes in some worker threads auto tests

Replace the crashing use of QV4::ExecutionEngine::publicEngine from within
worker threads (null pointer there) with direct pass-through of the QQmlEngine
pointer. It will be null within worker threads, but that the code can handle.

Change-Id: I8eff9d2cc6ca6f2afd9c0eef203975be9119b9b6
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
src/qml/qml/v8/qqmlbuiltinfunctions.cpp
src/qml/qml/v8/qqmlbuiltinfunctions_p.h
src/qml/qml/v8/qv8engine.cpp