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

David Herrmann dh.herrmann at googlemail.com
Wed Jan 23 05:11:19 PST 2013


We need to actually return the destroy-listener, otherwise the return
value is undefined.

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