view_map: free criterias as the list it is
This commit is contained in:
parent
ffbe91c245
commit
785ed4383b
|
@ -514,7 +514,7 @@ void view_map(struct sway_view *view, struct wlr_surface *wlr_surface) {
|
||||||
if (container_is_floating(focus)) {
|
if (container_is_floating(focus)) {
|
||||||
focus = focus->parent->parent;
|
focus = focus->parent->parent;
|
||||||
}
|
}
|
||||||
free(criterias);
|
list_free(criterias);
|
||||||
cont = container_view_create(focus, view);
|
cont = container_view_create(focus, view);
|
||||||
|
|
||||||
view->surface = wlr_surface;
|
view->surface = wlr_surface;
|
||||||
|
|
Loading…
Reference in a new issue