Details
Description
Leak backtraces:
0 libsystem_malloc.dylib malloc_zone_calloc
1 libsystem_malloc.dylib calloc
2 libobjc.A.dylib class_createInstance
3 libobjc.A.dylib +[NSObject allocWithZone:]
4 libobjc.A.dylib +[NSObject new]
5 AppKit -[NSControl _commonEarlyInit]
6 AppKit -[NSControl initWithFrame:]
7 AppKit -[NSSlider initWithFrame:]
8 libqmacstyle.dylib setupSlider(NSSlider*, QStyleOptionSlider const*)
9 libqmacstyle.dylib QMacStyle::drawComplexControl(QStyle::ComplexControl, QStyleOptionComplex const*, QPainter*, QWidget const*) const
10 QtWidgets QSlider::paintEvent(QPaintEvent*)
0 libsystem_malloc.dylib malloc_zone_calloc
1 libsystem_malloc.dylib calloc
2 libobjc.A.dylib class_createInstance
3 libobjc.A.dylib +[NSObject allocWithZone:]
4 libobjc.A.dylib +[NSObject new]
5 AppKit -[NSControl _commonEarlyInit]
6 AppKit -[NSControl initWithFrame:]
7 AppKit -[NSSlider initWithFrame:]
8 libqmacstyle.dylib QMacStylePrivate::cocoaControl(QMacStylePrivate::CocoaControl) const
9 libqmacstyle.dylib QMacStyle::drawComplexControl(QStyle::ComplexControl, QStyleOptionComplex const*, QPainter*, QWidget const*) const
10 QtWidgets QSlider::paintEvent(QPaintEvent*)
This looks like it is probably the same problem that leaked QScroller in QTBUG-60004 where initWithFrame is being called on an object that is already initialised.
Attachments
Issue Links
- resulted from
-
QTBUG-98093 QSlider is broken in MacOS Monterey
- Closed
For Gerrit Dashboard: QTBUG-112899 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
474373,3 | macOS: Avoid memory leak when using NSSlider for style drawing | dev | qt/qtbase | Status: MERGED | +2 | 0 |
474773,2 | macOS: Avoid memory leak when using NSSlider for style drawing | 6.5 | qt/qtbase | Status: MERGED | +2 | 0 |