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

QToolButton::setIcon leaks memory

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • Icon: P2: Important P2: Important
    • None
    • 4.8.0, 5.11.1
    • None
    • Windows 7

      These 2 lines of code, put in a slot and called by a timer, show there's a memory leak on Windows:

      QPixmap pixmap (64, 64);
      ui->toolButton->setIcon(pixmap);

      A demonstration project is attached.
      The leak doesn't happen when the same 2 lines of code are called within a for-loop.

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

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            violetgiraffe Alex
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes