mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	pw-cli: free properties in create_ functions
This commit is contained in:
		
							parent
							
								
									50bae0a209
								
							
						
					
					
						commit
						66e37f6bb7
					
				
					 1 changed files with 9 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -1293,6 +1293,9 @@ static bool do_create_device(struct data *data, const char *cmd, char *args, cha
 | 
			
		|||
					    props ? &props->dict : NULL,
 | 
			
		||||
					    sizeof(struct proxy_data));
 | 
			
		||||
 | 
			
		||||
	if (props)
 | 
			
		||||
		pw_properties_free(props);
 | 
			
		||||
 | 
			
		||||
	pd = pw_proxy_get_user_data(proxy);
 | 
			
		||||
	pd->rd = rd;
 | 
			
		||||
	pd->proxy = proxy;
 | 
			
		||||
| 
						 | 
				
			
			@ -1330,6 +1333,9 @@ static bool do_create_node(struct data *data, const char *cmd, char *args, char
 | 
			
		|||
					    props ? &props->dict : NULL,
 | 
			
		||||
					    sizeof(struct proxy_data));
 | 
			
		||||
 | 
			
		||||
	if (props)
 | 
			
		||||
		pw_properties_free(props);
 | 
			
		||||
 | 
			
		||||
	pd = pw_proxy_get_user_data(proxy);
 | 
			
		||||
	pd->rd = rd;
 | 
			
		||||
	pd->proxy = proxy;
 | 
			
		||||
| 
						 | 
				
			
			@ -1399,6 +1405,9 @@ static bool do_create_link(struct data *data, const char *cmd, char *args, char
 | 
			
		|||
					  props ? &props->dict : NULL,
 | 
			
		||||
					  sizeof(struct proxy_data));
 | 
			
		||||
 | 
			
		||||
	if (props)
 | 
			
		||||
		pw_properties_free(props);
 | 
			
		||||
 | 
			
		||||
	pd = pw_proxy_get_user_data(proxy);
 | 
			
		||||
	pd->rd = rd;
 | 
			
		||||
	pd->proxy = proxy;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue