mirror of
https://github.com/labwc/labwc.git
synced 2025-11-04 13:30:07 -05:00
server: free() in correct order
This commit is contained in:
parent
93145ebc2a
commit
c8040e4d3b
2 changed files with 2 additions and 9 deletions
|
|
@ -380,6 +380,7 @@ output_destroy_notify(struct wl_listener *listener, void *data)
|
||||||
wl_list_remove(&output->link);
|
wl_list_remove(&output->link);
|
||||||
wl_list_remove(&output->frame.link);
|
wl_list_remove(&output->frame.link);
|
||||||
wl_list_remove(&output->destroy.link);
|
wl_list_remove(&output->destroy.link);
|
||||||
|
free(output);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
|
||||||
10
src/server.c
10
src/server.c
|
|
@ -211,15 +211,7 @@ server_finish(struct server *server)
|
||||||
wl_display_destroy_clients(server->wl_display);
|
wl_display_destroy_clients(server->wl_display);
|
||||||
|
|
||||||
seat_finish(server);
|
seat_finish(server);
|
||||||
|
wlr_output_layout_destroy(server->output_layout);
|
||||||
|
|
||||||
wl_display_destroy(server->wl_display);
|
wl_display_destroy(server->wl_display);
|
||||||
|
|
||||||
struct output *output, *next;
|
|
||||||
wl_list_for_each_safe (output, next, &server->outputs, link) {
|
|
||||||
info("remove output %p", output);
|
|
||||||
wl_list_remove(&output->link);
|
|
||||||
free(output);
|
|
||||||
}
|
|
||||||
|
|
||||||
wlr_output_layout_destroy(server->output_layout);
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue