[PATCH weston] toytoolkit: Remove redundant XKB free

Kristian Høgsberg hoegsberg at gmail.com
Mon Jul 9 15:03:18 PDT 2012


On Mon, Jul 09, 2012 at 12:27:28PM +0100, Daniel Stone wrote:
> We already unref these in fini_xkb().

Thanks, committed.

Kristian

> Signed-off-by: Daniel Stone <daniel at fooishbar.org>
> ---
>  clients/window.c |    5 -----
>  1 file changed, 5 deletions(-)
> 
> diff --git a/clients/window.c b/clients/window.c
> index 8f3c942..39a9dd6 100644
> --- a/clients/window.c
> +++ b/clients/window.c
> @@ -3335,11 +3335,6 @@ input_destroy(struct input *input)
>  	input_remove_keyboard_focus(input);
>  	input_remove_pointer_focus(input);
>  
> -	if (input->xkb.state)
> -		xkb_state_unref(input->xkb.state);
> -	if (input->xkb.keymap)
> -		xkb_map_unref(input->xkb.keymap);
> -
>  	if (input->drag_offer)
>  		data_offer_destroy(input->drag_offer);
>  
> -- 
> 1.7.10.4
> 
> _______________________________________________
> wayland-devel mailing list
> wayland-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/wayland-devel


More information about the wayland-devel mailing list