diff --git a/src/jwidget.c b/src/jwidget.c index 645ebd7..5b5a6fc 100644 --- a/src/jwidget.c +++ b/src/jwidget.c @@ -227,6 +227,7 @@ void jwidget_remove_child(void *w0, void *child0) index = read; } } + w->child_count = write; /* Remove the parent from the child */ child->parent = NULL;