From 3ef32bcdc4662fbc10bc5217ea7849cd31480d73 Mon Sep 17 00:00:00 2001 From: Manish Singh Date: Mon, 1 Sep 2003 05:11:17 +0000 Subject: [PATCH] FcConfigAppFontClear: Support passing NULL to use default config. --- ChangeLog | 5 +++++ src/fccfg.c | 7 +++++++ 2 files changed, 12 insertions(+) diff --git a/ChangeLog b/ChangeLog index d265c74..79ca94a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2003-08-31 Manish Singh + + * src/fccfg.c (FcConfigAppFontClear): Support passing NULL to + use default config. + 2003-08-15 Carl Worth * src/fcxml.c (FcEditDestroy): Fix leak of FcEdit. diff --git a/src/fccfg.c b/src/fccfg.c index 12cad84..f393c79 100644 --- a/src/fccfg.c +++ b/src/fccfg.c @@ -1727,6 +1727,13 @@ FcConfigAppFontAddDir (FcConfig *config, void FcConfigAppFontClear (FcConfig *config) { + if (!config) + { + config = FcConfigGetCurrent (); + if (!config) + return; + } + FcConfigSetFonts (config, 0, FcSetApplication); }