mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-01 22:58:38 -04:00
Merge pull request #668 from dlrobertson/fix_null_deref
Fix null deref in wlr_libinput_backend_destroy
This commit is contained in:
commit
f5260361c8
1 changed files with 3 additions and 1 deletions
|
|
@ -118,7 +118,9 @@ static void wlr_libinput_backend_destroy(struct wlr_backend *wlr_backend) {
|
|||
wl_list_remove(&backend->session_signal.link);
|
||||
|
||||
wlr_list_finish(&backend->wlr_device_lists);
|
||||
wl_event_source_remove(backend->input_event);
|
||||
if (backend->input_event) {
|
||||
wl_event_source_remove(backend->input_event);
|
||||
}
|
||||
libinput_unref(backend->libinput_context);
|
||||
free(backend);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue