From e3cff8cb8136b71de61854cd658d22ee25d7e24a Mon Sep 17 00:00:00 2001 From: oga Date: Sun, 18 May 2008 19:38:18 +0000 Subject: group_ctx->name is only used in this one function, and for now it corresponds directly to the static list of group names. Just use the static list and stop strdup()ing a new version for the context struct. Since that never got freed this also fixes a small memleak. Kill some unused variables while i'm here. ok okan@ --- calmwm.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'calmwm.h') diff --git a/calmwm.h b/calmwm.h index 0d90bde..302daa1 100644 --- a/calmwm.h +++ b/calmwm.h @@ -15,7 +15,7 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * - * $Id: calmwm.h,v 1.39 2008/05/17 03:59:54 okan Exp $ + * $Id: calmwm.h,v 1.40 2008/05/18 19:38:18 oga Exp $ */ #ifndef _CALMWM_H_ @@ -171,7 +171,6 @@ static char *shortcut_to_name[] = { struct group_ctx { TAILQ_ENTRY(group_ctx) entry; struct client_ctx_q clients; - char *name; int shortcut; int hidden; int nhidden; -- cgit v1.2.3-2-gb3c3