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

memory leak of QFontEngineData object

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.1.0 Beta 1
    • 5.0.0 Beta 1
    • GUI: Font handling
    • None
    • Windows 7 x64
      vs2010 sp1
    • 4f400eeec1eed2d41f351ffd3f160cbde133c5eb

    Description

      QFont::cleanup(); and cleanupThreadData(); in QGuiApplicationPrivate::~QGuiApplicationPrivate() will trigger QFontCache::~QFontCache() function being called and at that time the platform_theme object still hold some fonts object, This will cause the QFontEngineData object hold by those fonts can never been deleted.
      I have submit a change (https://codereview.qt-project.org/#change,23253) to fix this leak, but that change has been reverted (https://codereview.qt-project.org/#change,23615) due to the reason "The fix causes crashes on exit in Qt Declarative.". But I can not produce this crash on Windows 7, so the only thing I can do is to submit a bug report.

      Attachments

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

        Activity

          People

            ritt.ks Konstantin Ritt
            jianliang79 liang jian
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes