Commit b1131074 authored by Morten Johan Sørvig's avatar Morten Johan Sørvig Committed by Gabriel de Dietrich
Browse files

QMacStyle: Fix scroller memory leak


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: default avatarTimur Pocheptsov <timur.pocheptsov@qt.io>
Reviewed-by: default avatarGabriel de Dietrich <gabriel.dedietrich@qt.io>
parent 5cde0735
No related merge requests found
Showing with 14 additions and 5 deletions
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment