changeset 100161:f26bd5948e57

(ftfont_resolve_generic_family): Avoid using uninitialized var.
author Chong Yidong <cyd@stupidchicken.com>
date Wed, 03 Dec 2008 04:57:58 +0000
parents d89de80821c9
children 516a77f9915e
files src/ftfont.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/ftfont.c	Wed Dec 03 04:56:00 2008 +0000
+++ b/src/ftfont.c	Wed Dec 03 04:57:58 2008 +0000
@@ -247,8 +247,8 @@
   else
     family = Qnil;
   XSETCDR (slot, family);
+  if (match) FcPatternDestroy (match);
  err:
-  if (match) FcPatternDestroy (match);
   if (pattern) FcPatternDestroy (pattern);
   return family;
 }