(xfont_list_pattern): Free names returned from XListFonts.
authorKenichi Handa <handa@m17n.org>
Fri, 23 May 2008 01:31:32 +0000 (01:31 +0000)
committerKenichi Handa <handa@m17n.org>
Fri, 23 May 2008 01:31:32 +0000 (01:31 +0000)
src/xfont.c

index 8483ae5..f843124 100644 (file)
@@ -290,6 +290,7 @@ xfont_list_pattern (frame, display, pattern)
                  || XINT (AREF (entity, FONT_AVGWIDTH_INDEX)) > 0))
            list = Fcons (entity, list);
        }
+      XFreeFontNames (names);
     }
 
   x_uncatch_errors ();