mirror of
				https://github.com/swaywm/sway.git
				synced 2025-11-03 09:01:43 -05:00 
			
		
		
		
	Remove timer when transaction destroys
This commit is contained in:
		
							parent
							
								
									e8001e6fbe
								
							
						
					
					
						commit
						0085f64ac0
					
				
					 1 changed files with 3 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -102,6 +102,9 @@ static void transaction_destroy(struct sway_transaction *transaction) {
 | 
			
		|||
	list_foreach(transaction->damage, free);
 | 
			
		||||
	list_free(transaction->damage);
 | 
			
		||||
 | 
			
		||||
	if (transaction->timer) {
 | 
			
		||||
		wl_event_source_remove(transaction->timer);
 | 
			
		||||
	}
 | 
			
		||||
	free(transaction);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue