From 9a38a64ceddbaa09f0f9468c3053043248a0b265 Mon Sep 17 00:00:00 2001 From: Martin Duquesnoy Date: Tue, 13 Apr 2010 20:49:42 +0200 Subject: [PATCH] Conf: Fix multi mouse section of titlebar --- src/config.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/config.c b/src/config.c index 17d71b8..11d2b9c 100644 --- a/src/config.c +++ b/src/config.c @@ -281,13 +281,14 @@ conf_client_section(void) mouse = fetch_section(titlebar[0], "mouse"); - for(n = 0; sec[n]; n++); + for(n = 0; mouse[n]; n++); if((conf.titlebar.nmouse = n) > 0) { conf.titlebar.mouse = emalloc(conf.titlebar.nmouse, sizeof(MouseBinding)); mouse_section(conf.titlebar.mouse, n, mouse); } + free(mouse); /* Multi button part */