summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorOwain Ainsworth <oga@cvs.openbsd.org>2009-01-22 18:16:39 +0000
committerOwain Ainsworth <oga@cvs.openbsd.org>2009-01-22 18:16:39 +0000
commit9aff1b2e6e2d4947ab26df33b5aa48cc51ddf59d (patch)
treec1612df2ea78e918e73048443c90de55aaa1cf83 /app
parent535d8df69efd9eff90639b9188049e0c679de21f (diff)
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 'app')
-rw-r--r--app/cwm/parse.y5
1 files changed, 2 insertions, 3 deletions
diff --git a/app/cwm/parse.y b/app/cwm/parse.y
index e3e3bf8c9..996664ee7 100644
--- a/app/cwm/parse.y
+++ b/app/cwm/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.16 2009/01/21 15:04:38 todd Exp $ */
+/* $OpenBSD: parse.y,v 1.17 2009/01/22 18:16:38 oga Exp $ */
/*
* Copyright (c) 2002, 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -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);
}