mirror of
				https://gitlab.freedesktop.org/wayland/wayland.git
				synced 2025-11-03 09:01:42 -05:00 
			
		
		
		
	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
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -447,6 +447,6 @@ WL_EXPORT struct wl_listener *
 | 
				
			||||||
wl_event_loop_get_destroy_listener(struct wl_event_loop *loop,
 | 
					wl_event_loop_get_destroy_listener(struct wl_event_loop *loop,
 | 
				
			||||||
				   wl_notify_func_t notify)
 | 
									   wl_notify_func_t notify)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	wl_signal_get(&loop->destroy_signal, notify);
 | 
						return wl_signal_get(&loop->destroy_signal, notify);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue