about summary refs log tree commit diff
path: root/parse.y
diff options
context:
space:
mode:
authoroga <oga>2009-01-22 18:16:38 +0000
committeroga <oga>2009-01-22 18:16:38 +0000
commite2399760789158633a6d2fa95aad274021ccdd8b (patch)
tree51bc395b65ece0632f1e509cc4502d1a84a46cfd /parse.y
parent712f3f62c7265bd8998e692868f653471dacf3be (diff)
downloadcwm-e2399760789158633a6d2fa95aad274021ccdd8b.tar.gz
cwm-e2399760789158633a6d2fa95aad274021ccdd8b.tar.xz
cwm-e2399760789158633a6d2fa95aad274021ccdd8b.zip
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@
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y3
1 files changed, 1 insertions, 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);
 }