aboutsummaryrefslogtreecommitdiffstats
path: root/group.c
diff options
context:
space:
mode:
authorokan2012-12-17 14:32:39 +0000
committerokan2012-12-17 14:32:39 +0000
commitc41d09cb1ce845c96079c6bc1e204e62caf32b95 (patch)
treeb245825ac245104c8c5bf701e726234d9df75d46 /group.c
parent43033f15ed112e90c2a62d9facdbfbf1ad5b61ee (diff)
downloadcwm-c41d09cb1ce845c96079c6bc1e204e62caf32b95.tar.gz
create and use menuq_clear() helper; from Tiago Cunha
Diffstat (limited to 'group.c')
-rw-r--r--group.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/group.c b/group.c
index 386fdc9..4c268c7 100644
--- a/group.c
+++ b/group.c
@@ -16,7 +16,7 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
- * $OpenBSD: group.c,v 1.64 2012/11/29 04:25:49 okan Exp $
+ * $OpenBSD: group.c,v 1.65 2012/12/17 14:32:39 okan Exp $
*/
#include <sys/param.h>
@@ -385,10 +385,7 @@ group_menu(XButtonEvent *e)
(gc->hidden) ? group_show(sc, gc) : group_hide(sc, gc);
cleanup:
- while ((mi = TAILQ_FIRST(&menuq)) != NULL) {
- TAILQ_REMOVE(&menuq, mi, entry);
- free(mi);
- }
+ menuq_clear(&menuq);
}
void