Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-112899

QMacStyle setupSlider leaks memory painting QSlider

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • 6.5.1, 6.6.0
    • 6.4.3, 6.5.0
    • QPA
    • None
    • macOS
    • 4db9fdf58 (dev), 531bb7785 (6.5)

    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

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              vestbo Tor Arne Vestbø
              csnover C S
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes