mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	pulse-server: sample-play: clean hook list
Clean the hook list when the object is destroyed.
This commit is contained in:
		
							parent
							
								
									807fa19319
								
							
						
					
					
						commit
						05a99c0e15
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		| 
						 | 
					@ -211,6 +211,8 @@ void sample_play_destroy(struct sample_play *p)
 | 
				
			||||||
	if (p->stream)
 | 
						if (p->stream)
 | 
				
			||||||
		pw_stream_destroy(p->stream);
 | 
							pw_stream_destroy(p->stream);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						spa_hook_list_clean(&p->hooks);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	free(p);
 | 
						free(p);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue