[PATCH] event-loop: fix returning the destroy-signal listener

Kristian Høgsberg hoegsberg at gmail.com
Thu Jan 24 13:15:23 PST 2013


On Wed, Jan 23, 2013 at 02:11:19PM +0100, David Herrmann wrote:
> We need to actually return the destroy-listener, otherwise the return
> value is undefined.

Thanks David, I should've caught that.  Committed.

Kristian

> Signed-off-by: David Herrmann <dh.herrmann at googlemail.com>
> ---
>  src/event-loop.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/event-loop.c b/src/event-loop.c
> index 25e8f9c..e556cc7 100644
> --- a/src/event-loop.c
> +++ b/src/event-loop.c
> @@ -447,6 +447,6 @@ WL_EXPORT struct wl_listener *
>  wl_event_loop_get_destroy_listener(struct wl_event_loop *loop,
>  				   wl_notify_func_t notify)
>  {
> -	wl_signal_get(&loop->destroy_signal, notify);
> +	return wl_signal_get(&loop->destroy_signal, notify);
>  }
>  
> -- 
> 1.8.1.1
> 


More information about the wayland-devel mailing list