mirror of https://github.com/0intro/wmii
fixed crashing bug
This commit is contained in:
parent
0a87eed676
commit
7b5978c34b
|
@ -37,6 +37,8 @@ destroy_area(Area *a)
|
||||||
free(a->client);
|
free(a->client);
|
||||||
cext_array_detach((void **)p->area, a, &p->areasz);
|
cext_array_detach((void **)p->area, a, &p->areasz);
|
||||||
p->narea--;
|
p->narea--;
|
||||||
|
if(p->sel >= p->narea)
|
||||||
|
p->sel = p->narea - 1;
|
||||||
free(a);
|
free(a);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue