view_map: free criterias as the list it is

This commit is contained in:
Dominique Martinet 2018-07-04 18:50:31 +09:00
parent ffbe91c245
commit 785ed4383b

View File

@ -514,7 +514,7 @@ void view_map(struct sway_view *view, struct wlr_surface *wlr_surface) {
if (container_is_floating(focus)) {
focus = focus->parent->parent;
}
free(criterias);
list_free(criterias);
cont = container_view_create(focus, view);
view->surface = wlr_surface;