forked from enlightenment/efl
Ecore_Wayland: Patch from Rob Bradford to add missing NULL checks for
ecore_wl_input. SVN revision: 71957
This commit is contained in:
parent
9e27dfdb43
commit
19e75367b0
|
@ -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.
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue