diff options
author | Sami Varanka <sami.varanka@qt.io> | 2021-06-07 12:55:22 +0300 |
---|---|---|
committer | Sami Varanka <sami.varanka@qt.io> | 2021-06-08 10:23:53 +0300 |
commit | c0fd354690a6de2923e975bb4586fa5bbf310bb1 (patch) | |
tree | f3dce70fe715247f485deba018aa953b4303171f /tests | |
parent | de73026a3a7695e1e2f450772a4d9af6260938a4 (diff) |
Fix Q3DScatter memory leak
When using static optimization for scattergraph
and series mesh type is not point mesh,
the scatter3D renderer uses
ScatterObjectBufferHelper's fullLoad. In
the fullLoad old data buffers are deleted, if
m_meshDataLoaded is set to true. However, at the
beginning of the fullLoad, the flag was always
set to false so old data buffers were
never deleted. Moved the setting of
the m_meshDataLoaded to false after the deletion
of old buffers. Added similar code to
scatterpointbufferhelper for consistency.
Pick-to: 5.15 6.1
Fixes: QTBUG-80194
Change-Id: I2fd71af86b1fd73621074187f112fd9783df36df
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions