summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Bradford <rob@linux.intel.com>2013-07-24 16:57:32 +0100
committerKristian Høgsberg <krh@bitplanet.net>2013-07-29 16:36:58 -0700
commitead3ef8c7756d55e61c1a22489bac7ea9728934d (patch)
tree56d82e24b6e6f176981b51560724c6c340289676
parent3d2046ed4bf14202355c2327d390cb58e6e64a4c (diff)
text-backend: remove the weston_seat destruction listener on destroy
Prior to freeing the memory in which the link node for the signal is emedded we should remove the link node from the list to prevent the list from being corrupted. https://bugs.freedesktop.org/show_bug.cgi?id=67231
-rw-r--r--src/text-backend.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/text-backend.c b/src/text-backend.c
index 3a1d68c3..6c7430c6 100644
--- a/src/text-backend.c
+++ b/src/text-backend.c
@@ -792,6 +792,7 @@ input_method_notifier_destroy(struct wl_listener *listener, void *data)
deactivate_text_input(input_method->model, input_method);
wl_global_destroy(input_method->input_method_global);
+ wl_list_remove(&input_method->destroy_listener.link);
free(input_method);
}