Fix leak of QString in V4 IR
authorSimon Hausmann <simon.hausmann@digia.com>
Mon, 12 Aug 2013 11:30:19 +0000 (13:30 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Mon, 12 Aug 2013 20:14:49 +0000 (22:14 +0200)
commit12520389e91b73b47fb2006b7c7623285c9450c5
tree2b195ab1d2e8c6dfee0deee42c870ac71ef34abf
parent5ef37477f99ed97dd6669f05a0ee555fc3baf2ca
Fix leak of QString in V4 IR

The destructors of the IR nodes won't be called because they come out of
a memory pool. Therefore we must store strings by pointer from the function's
string pool.

Change-Id: I841e801b81c871e8d08cf63ee1e053744c0bf4dc
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
src/qml/compiler/qv4codegen.cpp
src/qml/compiler/qv4isel_masm.cpp
src/qml/compiler/qv4isel_moth.cpp
src/qml/compiler/qv4jsir.cpp
src/qml/compiler/qv4jsir_p.h