Fix segfault
This commit is contained in:
parent
732b9d3910
commit
1b554ebc1e
1 changed files with 5 additions and 3 deletions
|
@ -480,9 +480,11 @@ void remove_area (void *a)
|
|||
Area *area = (Area*)a;
|
||||
Area *parent = (Area*)area->parent;
|
||||
|
||||
if (parent) {
|
||||
parent->children = g_list_remove(parent->children, area);
|
||||
parent->resize = 1;
|
||||
set_redraw(parent);
|
||||
}
|
||||
|
||||
if (mouse_over_area == a) {
|
||||
mouse_out();
|
||||
|
|
Loading…
Reference in a new issue