Ecore_Wayland: Patch from Rob Bradford to add missing NULL checks for

ecore_wl_input.



SVN revision: 71957
This commit is contained in:
Christopher Michael 2012-06-11 17:11:38 +00:00
parent 9e27dfdb43
commit 19e75367b0
2 changed files with 8 additions and 2 deletions

View File

@ -735,3 +735,7 @@
* Ecore_Wayland: Update to protocol change - axis events are now fixed point numbers
2012-06-11 Rob Bradford
* Ecore_Wayland: Add missing null pointer checks on input device
deletion (ticket #1031). Not all devices are keyboards.

View File

@ -238,8 +238,10 @@ _ecore_wl_input_del(Ecore_Wl_Input *input)
if (input->seat) wl_seat_destroy(input->seat);
wl_list_remove(&input->link);
xkb_state_unref(input->xkb.state);
xkb_map_unref(input->xkb.keymap);
if (input->xkb.state)
xkb_state_unref(input->xkb.state);
if (input->xkb.keymap)
xkb_map_unref(input->xkb.keymap);
free(input);
}