mirror of
				https://github.com/labwc/labwc.git
				synced 2025-11-03 09:01:51 -05:00 
			
		
		
		
	server: free() in correct order
This commit is contained in:
		
							parent
							
								
									93145ebc2a
								
							
						
					
					
						commit
						c8040e4d3b
					
				
					 2 changed files with 2 additions and 9 deletions
				
			
		
							
								
								
									
										10
									
								
								src/server.c
									
										
									
									
									
								
							
							
						
						
									
										10
									
								
								src/server.c
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -211,15 +211,7 @@ server_finish(struct server *server)
 | 
			
		|||
	wl_display_destroy_clients(server->wl_display);
 | 
			
		||||
 | 
			
		||||
	seat_finish(server);
 | 
			
		||||
	wlr_output_layout_destroy(server->output_layout);
 | 
			
		||||
 | 
			
		||||
	wl_display_destroy(server->wl_display);
 | 
			
		||||
 | 
			
		||||
	struct output *output, *next;
 | 
			
		||||
	wl_list_for_each_safe (output, next, &server->outputs, link) {
 | 
			
		||||
		info("remove output %p", output);
 | 
			
		||||
		wl_list_remove(&output->link);
 | 
			
		||||
		free(output);
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	wlr_output_layout_destroy(server->output_layout);
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue