Package: inventor / 2.1.5-10-21

dont-use-FT_Done_GlyphSlot.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
Author: Steve M. Robbins <smr@debian.org>
Description: Don't use FT_Done_GlyphSlot()
  Removed use of FT_Done_GlyphSlot() to solve FTBFS bug #867111.

  The symbol FT_Done_GlyphSlot is presumably an internal detail.
  Fedora found that of 800 freetype-using packages, only Inventor
  used this symbol; see https://bugzilla.redhat.com/show_bug.cgi?id=1372368

  The documentation for this function reads:

    Destroys a given glyph slot. Remember however that all slots are
    automatically destroyed with its parent. Using this function is
    not always mandatory.

    See http://www.stillhq.com/freetype/doco/0.1/FT_Done_GlyphSlot.html

  Which suggests it likely that this function call was never required
  in the first place.


--- inventor-2.1.5-10.orig/libFL/ang/flfreetype.c
+++ inventor-2.1.5-10/libFL/ang/flfreetype.c
@@ -402,10 +402,6 @@
 _flFTDeleteGlyphChar(FLFreeTypeOutline *outline)
 {
   TRACE(("_flFTDeleteGlyphChar: outline=%p\n", outline));
-
-  if (outline) {
-    FT_Done_GlyphSlot(outline->glyph);
-  }
 }
 
 short