mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-22 20:41:20 +00:00
[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
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue