[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:
parent
a1d8319b48
commit
4defba8251
|
@ -209,6 +209,7 @@ view_delete (view_t *view)
|
||||||
view_remove (view->parent, view);
|
view_remove (view->parent, view);
|
||||||
while (view->num_children)
|
while (view->num_children)
|
||||||
view_delete (view->children[0]);
|
view_delete (view->children[0]);
|
||||||
|
free (view->children);
|
||||||
free (view);
|
free (view);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue