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:Timur Pocheptsov <timur.pocheptsov@qt.io> Reviewed-by:
Gabriel de Dietrich <gabriel.dedietrich@qt.io>
Showing
Please register or sign in to comment