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:
parent
2423497b99
commit
142aa4a119
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user