From c360abdc72c361a791bf53f2f5be6ff3af134037 Mon Sep 17 00:00:00 2001 From: garbeam Date: Thu, 8 Dec 2005 02:53:46 +0200 Subject: [PATCH] fixed destroy_area --- cmd/wm/area.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/cmd/wm/area.c b/cmd/wm/area.c index 9bbff94e..a6d7bac8 100644 --- a/cmd/wm/area.c +++ b/cmd/wm/area.c @@ -37,16 +37,9 @@ Area *alloc_area(Page *p, XRectangle * r, char *layout) return a; } -static void iter_destroy_area(void *item, void *aux) -{ - destroy_frame((Frame *)item); - free((Frame *)item); -} - void destroy_area(Area *a) { a->layout->deinit(a); - cext_iterate(a->layout->get_frames(a), nil, iter_destroy_area); ixp_remove_file(ixps, a->file[A_PREFIX]); free(a); }