diff options
author | Erik Verbruggen <erik.verbruggen@qt.io> | 2018-04-10 15:23:30 +0200 |
---|---|---|
committer | Erik Verbruggen <erik.verbruggen@qt.io> | 2018-04-10 14:15:24 +0000 |
commit | f2633df1be25acdf1a5444bbd301955ae3412297 (patch) | |
tree | c55cb9973368cbf1eb06839d139a801c2891dea4 /src/qml/compiler/qv4codegen_p.h | |
parent | 51b73e0bb68812d78315af032546750d04656c02 (diff) |
Fix leak of compiler contexts
Repeatedly entering a context that was entered before would result in
leaking the previously entered context. This can happen when compiling
child objects in a QML file, which is done recursively. So before
compiling the bindings/function in the child object, first the global
context and then the QML context are entered.
The fix is to re-use the global context, as it's the same anyway for all
objects in the same module. And we can remove entering the QML context,
because nothing is in there, and we don't put anything in it ever.
Change-Id: Ib1c4259d2dec22df46e96edb65bc3d377e52e671
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/qml/compiler/qv4codegen_p.h')
0 files changed, 0 insertions, 0 deletions