mirror of
				https://github.com/swaywm/sway.git
				synced 2025-11-03 09:01:43 -05:00 
			
		
		
		
	Free outputs on registry teardown
This commit is contained in:
		
							parent
							
								
									8d6f3fff24
								
							
						
					
					
						commit
						e39f846247
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -3,6 +3,7 @@
 | 
			
		|||
#include <string.h>
 | 
			
		||||
#include "wayland-desktop-shell-client-protocol.h"
 | 
			
		||||
#include "client/registry.h"
 | 
			
		||||
#include "stringop.h"
 | 
			
		||||
#include "log.h"
 | 
			
		||||
 | 
			
		||||
static void display_handle_mode(void *data, struct wl_output *wl_output,
 | 
			
		||||
| 
						 | 
				
			
			@ -110,7 +111,6 @@ void registry_teardown(struct registry *registry) {
 | 
			
		|||
		wl_display_disconnect(registry->display);
 | 
			
		||||
	}
 | 
			
		||||
	if (registry->outputs) {
 | 
			
		||||
		// TODO: Free the outputs themselves
 | 
			
		||||
		list_free(registry->outputs);
 | 
			
		||||
		free_flat_list(registry->outputs);
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue