diff options
author | Simon Hausmann <simon.hausmann@qt.io> | 2018-06-15 09:03:53 +0200 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@qt.io> | 2018-06-25 20:04:05 +0000 |
commit | d5adc61b1fe358f7ba5d3570305eaf0733426e2f (patch) | |
tree | 5f5d041a57d2c7d800acefc0ca9e5cb9b80b37d2 /src/quick/scenegraph/qsgadaptationlayer.cpp | |
parent | d26a497f3eaf37d6733b4ab1bceb2158eb127648 (diff) |
Fix string memory leak in JavaScript AST
Commit 02252ae08d introduced a QString member in a JS memory pool class,
which leaks unfortunately as the pool is not designed to call
destructors of allocated types. Typically strings in the AST are derived
from input and therefore a QStringRef is fine. The bindingIdentifier in
the PatterElement however is sometimes synthesized, so a separate
storage for dynamically allocated strings in the memory pool allows for
using QStringRef again.
Change-Id: I94d090df653d784c554452722b3b759031e4735b
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'src/quick/scenegraph/qsgadaptationlayer.cpp')
0 files changed, 0 insertions, 0 deletions