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

QStylePainter leaks GC on X-server

XMLWordPrintable

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

      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.

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes