mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-19 10:58:10 +02:00
compositor: first destroy backend routines and then display
I caught this when an evdev device fd was trying to trigger the main event loop, which was already free'd and causing an invalid read. Signed-off-by: Tiago Vignatti <tiago.vignatti@intel.com>
This commit is contained in:
parent
c349e1d0b0
commit
9e2be08418
1 changed files with 1 additions and 1 deletions
|
|
@ -2092,9 +2092,9 @@ int main(int argc, char *argv[])
|
|||
|
||||
if (ec->has_bind_display)
|
||||
ec->unbind_display(ec->display, display);
|
||||
wl_display_destroy(display);
|
||||
|
||||
ec->destroy(ec);
|
||||
wl_display_destroy(display);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue