From 8a17f121cde0882a1de709ef3f54202bd8de6455 Mon Sep 17 00:00:00 2001 From: David Herrmann Date: Wed, 23 Jan 2013 14:11:19 +0100 Subject: [PATCH] event-loop: fix returning the destroy-signal listener We need to actually return the destroy-listener, otherwise the return value is undefined. Signed-off-by: David Herrmann --- 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); } -- 2.7.4