From e2399760789158633a6d2fa95aad274021ccdd8b Mon Sep 17 00:00:00 2001 From: oga Date: Thu, 22 Jan 2009 18:16:38 +0000 Subject: [PATCH] The default font name is strduped, so don't test for default font name (therefore leaking it) when cleaning up a conf struct. ok okan@ --- parse.y | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/parse.y b/parse.y index 1d98eb7..2024e10 100644 --- a/parse.y +++ b/parse.y @@ -502,8 +502,7 @@ conf_clear(struct conf *c) free(mb); } - if (c->DefaultFontName != NULL && - c->DefaultFontName != DEFAULTFONTNAME) + if (c->DefaultFontName != NULL) free(c->DefaultFontName); }