diff options
author | Simon Hausmann <simon.hausmann@qt.io> | 2019-03-15 11:13:05 +0100 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@qt.io> | 2019-03-15 11:16:12 +0100 |
commit | c61a75cd6a4a9cd7b3594b205fcac8fc1208d493 (patch) | |
tree | f44126af3d0fa566d33e207a8fa2e94d63403022 /src/qml/jsruntime/qv4lookup_p.h | |
parent | 869b89bde8b0149a875e6e23466820f573e4a73c (diff) |
Fix leaking scene graph rendering contexts
When using the threaded render loop, the rendering thread assumes
ownership of the rendering context. If the rendering thread is never
started, that context is leaked. This happens in tests sometimes when we
create and destroy a window without waiting for exposure.
So this patch maintains the ownership in the render loop for created
contexts until the per-window thread is started.
Task-number: QTBUG-74348
Change-Id: Ifa397fab0833c82110ac4571c1e3790351c43afd
Reviewed-by: BogDan Vatra <bogdan@kdab.com>
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'src/qml/jsruntime/qv4lookup_p.h')
0 files changed, 0 insertions, 0 deletions