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

FT font engine leaks cached hb_face objects

    XMLWordPrintable

Details

    • 0600f7d6299a21014f1b72d54fc6b23c02693204

    Description

      hb_face is a ref-counted object and every hb_face_reference() must be paired with hb_face_destroy() (via face_destroy_func); in contrary, HB-old's HB_Face isn't ref-counted object, so calling face_destroy_func() destroys the object.
      QFontEngineFT calls harfbuzzFace() to prepare HB's face object prior to reparenting it, so we're leaking hb_face object there.

      We should either not release the object returned by harfbuzzFace(), or introduce ref-counting for HB-old's HB_Face.

      Attachments

        For Gerrit Dashboard: QTBUG-42674
        # Subject Branch Project Status CR V

        Activity

          People

            ritt.ks Konstantin Ritt
            ritt.ks Konstantin Ritt
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes