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

Memory leak when overwriting icons attached to widgets

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • Not Evaluated
    • None
    • 5.7.0
    • None
    • I'm using Qt v5.7.0-2. The package was installed from Arch Linux's [extra] repository.

    Description

      I notice a memory leak whenever I overwrite icons that are attached to widgets in memory. Specifically, I'm talking about the 'QMainWindow' and 'QSystemTrayIcon' classes. I'm sure there are other cases; I just haven't looked for them.

      Each time I give either one of those a new icon (at runtime), my memory footprint increases proportionately. Trying to suck the old icon out first and deleting it manually doesn't help. Are you able to implement some sort of automatic cleanup mechanism?

      Attachments

        1. Memory-Leak-Test.tar.bz2
          15 kB
          Xavion
        2. qtbug-54435.cpp
          0.8 kB
          Marc Mutz
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            mmutz Marc Mutz
            xavion Xavion
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes