[ui] Free the view's children array

This would have leaked memory if views were being created and destroyed
dynamically instead of just the once-off in the current code.
This commit is contained in:
Bill Currie 2022-05-12 19:41:22 +09:00
parent a1d8319b48
commit 4defba8251

View file

@ -209,6 +209,7 @@ view_delete (view_t *view)
view_remove (view->parent, view);
while (view->num_children)
view_delete (view->children[0]);
free (view->children);
free (view);
}