server: free() in correct order

This commit is contained in:
Johan Malm 2020-10-23 20:19:07 +01:00
parent 93145ebc2a
commit c8040e4d3b
2 changed files with 2 additions and 9 deletions

View file

@ -380,6 +380,7 @@ output_destroy_notify(struct wl_listener *listener, void *data)
wl_list_remove(&output->link);
wl_list_remove(&output->frame.link);
wl_list_remove(&output->destroy.link);
free(output);
}
static void