diff options
author | David Herrmann <dh.herrmann@googlemail.com> | 2013-01-23 14:11:19 +0100 |
---|---|---|
committer | Kristian Høgsberg <krh@bitplanet.net> | 2013-01-24 16:14:33 -0500 |
commit | 142aa4a1197f6d4c8a7963dcc762e3d881d249fc (patch) | |
tree | a748de83b0bfa7c80765be0946cd1be46f438edf | |
parent | 2423497b999c999528a7d2380a13fcb3e3412d0a (diff) |
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 <dh.herrmann@googlemail.com>
-rw-r--r-- | src/event-loop.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |