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

QWinThumbnailToolBar GDI leak

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 5.4.0 RC
    • 5.4.0 Alpha
    • Extras: Win
    • None
    • Windows 7 64 bit
    • 26a8af4681c54aa6935a2179b5aaee9b81a3c023 (5.4, 30.9.2014, 5.4)

    Description

      https://github.com/qtproject/qtwinextras/blob/dev/src/winextras/qwinthumbnailtoolbar.cpp#L512

      method void QWinThumbnailToolBarPrivate::_q_updateToolbar() :

      QtWin::toHICON uses CreateIconIndirect winapi call, deletion must be performed by DestroyIcon, but freeButtonResources(buttons) at the end of the method uses DeleteObject. Task Manager also shows that gdi objects are increasing. After commenting out QWinThumbnailToolBar gdi leak dissapeared.

      Attachments

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

        Activity

          People

            xcdix Konstantin
            xcdix Konstantin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes