diff options
author | Morten Johan Sørvig <morten.sorvig@qt.io> | 2017-04-10 11:17:51 +0200 |
---|---|---|
committer | Gabriel de Dietrich <gabriel.dedietrich@qt.io> | 2017-04-21 16:52:36 +0000 |
commit | b1131074199aae97b2a005cba871f6baf2a32c63 (patch) | |
tree | edcdc246b18455fe16739379650a78481ba469a7 /src/opengl/qtopenglglobal.h | |
parent | 5cde07350c99d68c9d1f3d92e0a5057e2bcba0db (diff) |
QMacStyle: Fix scroller memory leakv5.9.0-beta3
Calling initWithFrame repeatedly on the same object
leaks memory since internal structures allocated on
the previous init call will not be released.
However, initWithFrame is the only API that can set
scroller direction, which is does based on the geometry.
Use two scroller objets, one for each of the horizontal
and vertical cases.
Task-number: QTBUG-60004
Change-Id: I5d07b62e6969a1824ab705941ac4d0340139b99c
Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@qt.io>
Diffstat (limited to 'src/opengl/qtopenglglobal.h')
0 files changed, 0 insertions, 0 deletions