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>
This commit is contained in:
David Herrmann 2013-01-23 14:11:19 +01:00 committed by Kristian Høgsberg
parent 2423497b99
commit 142aa4a119

View 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);
}