summary refs log tree commit diff
path: root/calmwm.h
diff options
context:
space:
mode:
authoroga <oga>2008-05-18 19:38:18 +0000
committeroga <oga>2008-05-18 19:38:18 +0000
commit5c402536fa7dfe6805ab1cb9e1cd96feaaf69c41 (patch)
tree1eca7cceed6f3c033f8f8296a19b70ddbdfd9275 /calmwm.h
parenta21a064a9b0d15239f72d5e6d5d9181fc387a427 (diff)
downloadcwm-5c402536fa7dfe6805ab1cb9e1cd96feaaf69c41.tar.gz
cwm-5c402536fa7dfe6805ab1cb9e1cd96feaaf69c41.tar.xz
cwm-5c402536fa7dfe6805ab1cb9e1cd96feaaf69c41.zip
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@
Diffstat (limited to 'calmwm.h')
-rw-r--r--calmwm.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/calmwm.h b/calmwm.h
index 06ba4ba..4f67369 100644
--- a/calmwm.h
+++ b/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;