mirror of
				https://gitlab.freedesktop.org/wlroots/wlroots.git
				synced 2025-11-03 09:01:40 -05:00 
			
		
		
		
	tinywl: Release everything before destroy
This makes -Db_sanatize=address happy.
This commit is contained in:
		
							parent
							
								
									f5a5712a02
								
							
						
					
					
						commit
						d5320e5f20
					
				
					 1 changed files with 5 additions and 1 deletions
				
			
		| 
						 | 
					@ -1001,8 +1001,12 @@ int main(int argc, char *argv[]) {
 | 
				
			||||||
			socket);
 | 
								socket);
 | 
				
			||||||
	wl_display_run(server.wl_display);
 | 
						wl_display_run(server.wl_display);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	/* Once wl_display_run returns, we shut down the server. */
 | 
						/* Once wl_display_run returns, we destroy all clients then shut down the
 | 
				
			||||||
 | 
						 * server. */
 | 
				
			||||||
	wl_display_destroy_clients(server.wl_display);
 | 
						wl_display_destroy_clients(server.wl_display);
 | 
				
			||||||
 | 
						wlr_scene_node_destroy(&server.scene->tree.node);
 | 
				
			||||||
 | 
						wlr_xcursor_manager_destroy(server.cursor_mgr);
 | 
				
			||||||
 | 
						wlr_output_layout_destroy(server.output_layout);
 | 
				
			||||||
	wl_display_destroy(server.wl_display);
 | 
						wl_display_destroy(server.wl_display);
 | 
				
			||||||
	return 0;
 | 
						return 0;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue