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

Memory leak when overwriting icons attached to widgets

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Not Evaluated 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.

      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?

        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.

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes