aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDominique Martinet <asmadeus@codewreck.org>2017-08-19 08:11:07 +0200
committerDominique Martinet <asmadeus@codewreck.org>2017-08-19 08:33:31 +0200
commit12782eabfe2bf688b15d612a0357e75f13c9ade7 (patch)
tree5aec28d6db4d98334728604750f99de734b91889
parent58efb8f90a8959a6f34bec233eeda2c1cbe138e8 (diff)
libinput: wl_event_source_remove on destroy
-rw-r--r--backend/libinput/backend.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/backend/libinput/backend.c b/backend/libinput/backend.c
index 28947a5e..5dd93f47 100644
--- a/backend/libinput/backend.c
+++ b/backend/libinput/backend.c
@@ -109,6 +109,7 @@ static void wlr_libinput_backend_destroy(struct wlr_backend *_backend) {
list_free(wlr_devices);
}
list_free(backend->wlr_device_lists);
+ wl_event_source_remove(backend->input_event);
libinput_unref(backend->libinput_context);
free(backend);
}