Commit e299a7e4 authored by Cedric Roux's avatar Cedric Roux
Browse files

bugfix - it may be that the container has only one child when we delete it

parent 8f50b77e
......@@ -49,7 +49,7 @@ static void del_child(gui *g, widget *_this, widget *child)
(this->nchildren - position - 1) * sizeof(int));
this->growable = realloc(this->growable, (this->nchildren-1)*sizeof(int));
if (this->growable == NULL) abort();
if (this->nchildren != 1 && this->growable == NULL) abort();
this->nchildren--;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment