aboutsummaryrefslogtreecommitdiff
path: root/src/util.c
diff options
context:
space:
mode:
authorHarry Jeffery <harry@exec64.co.uk>2016-09-27 23:55:08 +0100
committerHarry Jeffery <harry@exec64.co.uk>2016-09-27 23:55:08 +0100
commit10e71e07e4b2bbd451b35a493431928d44054185 (patch)
tree4a3e3ee33ed5f5e6ec06ca92c6b3b82793ae1a34 /src/util.c
parentb697fcd58abc16564624caa2211fd4279e528836 (diff)
downloadimv-10e71e07e4b2bbd451b35a493431928d44054185.tar.gz
Fix minor memory leak in load_font()
Diffstat (limited to 'src/util.c')
-rw-r--r--src/util.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/util.c b/src/util.c
index bdc36f2..6d10c00 100644
--- a/src/util.c
+++ b/src/util.c
@@ -79,6 +79,7 @@ TTF_Font *load_font(const char *font_spec)
FcPatternDestroy(font);
}
FcPatternDestroy(pattern);
+ FcConfigDestroy(cfg);
free(font_name);
return ret;