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

QStylePainter leaks GC on X-server

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • P2: Important
    • None
    • 4.5.3
    • GUI: Painting
    • None

    Description

      Steps to reproduce / test case:

      Compile gcleak.cpp file and run the attached source code.

      In an terminal run xrestop.
      Observe the number of GC allocated for the test application in xrestop.
      The reported value will quickly rise when resizing the window of the test application.

      Constructor of QStylePainter calls QPainter::begin() which results in call to XCreateGC.
      The created GC is not freed when QStylePainter goes out of scope.

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            sthomass Stian Sandvik Thomassen (closed Nokia identity) (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes