event-loop: fix returning the destroy-signal listener
authorDavid Herrmann <dh.herrmann@googlemail.com>
Wed, 23 Jan 2013 13:11:19 +0000 (14:11 +0100)
committerKristian Høgsberg <krh@bitplanet.net>
Fri, 25 Jan 2013 01:22:00 +0000 (20:22 -0500)
We need to actually return the destroy-listener, otherwise the return
value is undefined.

Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
src/event-loop.c

index 25e8f9c..e556cc7 100644 (file)
@@ -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);
 }