mirror of
https://github.com/0intro/wmii
synced 2024-12-22 19:36:51 +03:00
fixed destroy_area
This commit is contained in:
parent
a2e48172ad
commit
c360abdc72
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user