From 9aff1b2e6e2d4947ab26df33b5aa48cc51ddf59d Mon Sep 17 00:00:00 2001 From: Owain Ainsworth Date: Thu, 22 Jan 2009 18:16:39 +0000 Subject: 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@ --- app/cwm/parse.y | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'app') 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 @@ -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); } -- cgit v1.2.3