summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2005-02-10 23:00:51 +0000
committerKeith Packard <keithp@keithp.com>2005-02-10 23:00:51 +0000
commit47b49bf14b5cd433366a02374dfaf1c27a57cc91 (patch)
tree7609ff9af988e6f65d567bff5d583c8caf098603
parentafca783626534477f07b03d173bbe9f51e03b53b (diff)
Free patterns from fonts which are rejected by configuration (bug #2518)
reviewed by: pborelli@katamail.com
-rw-r--r--ChangeLog8
-rw-r--r--src/fcdir.c2
2 files changed, 10 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index ff45495..a67f619 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2005-02-10 Keith Packard <keithp@keithp.com>
+
+ reviewed by: pborelli@katamail.com
+
+ * src/fcdir.c: (FcFileScanConfig):
+ Free patterns from fonts which are rejected by configuration
+ (bug #2518)
+
2005-01-28 Keith Packard <keithp@keithp.com>
* README:
diff --git a/src/fcdir.c b/src/fcdir.c
index 8f7738d..974886d 100644
--- a/src/fcdir.c
+++ b/src/fcdir.c
@@ -150,6 +150,8 @@ FcFileScanConfig (FcFontSet *set,
ret = FcFalse;
}
}
+ else if (font)
+ FcPatternDestroy (font);
id++;
} while (font && ret && id < count);
return ret;