diff options
author | Tony Crisci <tony@dubstepdish.com> | 2017-12-18 16:24:56 -0500 |
---|---|---|
committer | Tony Crisci <tony@dubstepdish.com> | 2017-12-18 16:24:56 -0500 |
commit | d654a12b2e84e152c798a4c3d53653aeab0003b4 (patch) | |
tree | a17e79b7840cd907df41915fc9a7f906ec35598d | |
parent | 89fb0f14623aafb7ebc2d38a65022116e2f4fb03 (diff) |
remove display_destroy unlisten before output free
-rw-r--r-- | types/wlr_output.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/types/wlr_output.c b/types/wlr_output.c index f7b88444..120e0dab 100644 --- a/types/wlr_output.c +++ b/types/wlr_output.c @@ -296,13 +296,14 @@ void wlr_output_destroy(struct wlr_output *output) { wl_list_remove(&mode->link); free(mode); } + + wl_list_remove(&output->display_destroy.link); + if (output->impl && output->impl->destroy) { output->impl->destroy(output); } else { free(output); } - - wl_list_remove(&output->display_destroy.link); } void wlr_output_effective_resolution(struct wlr_output *output, |