mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-03 09:01:40 -05:00
remove display_destroy unlisten before output free
This commit is contained in:
parent
89fb0f1462
commit
d654a12b2e
1 changed files with 3 additions and 2 deletions
|
|
@ -296,13 +296,14 @@ void wlr_output_destroy(struct wlr_output *output) {
|
||||||
wl_list_remove(&mode->link);
|
wl_list_remove(&mode->link);
|
||||||
free(mode);
|
free(mode);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
wl_list_remove(&output->display_destroy.link);
|
||||||
|
|
||||||
if (output->impl && output->impl->destroy) {
|
if (output->impl && output->impl->destroy) {
|
||||||
output->impl->destroy(output);
|
output->impl->destroy(output);
|
||||||
} else {
|
} else {
|
||||||
free(output);
|
free(output);
|
||||||
}
|
}
|
||||||
|
|
||||||
wl_list_remove(&output->display_destroy.link);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void wlr_output_effective_resolution(struct wlr_output *output,
|
void wlr_output_effective_resolution(struct wlr_output *output,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue