mirror of
				https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
				synced 2025-11-03 09:01:50 -05:00 
			
		
		
		
	fix a memory leak
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2383 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
		
							parent
							
								
									9354da4960
								
							
						
					
					
						commit
						d21f458951
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
					@ -3,7 +3,7 @@
 | 
				
			||||||
/***
 | 
					/***
 | 
				
			||||||
  This file is part of PulseAudio.
 | 
					  This file is part of PulseAudio.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  Copyright 2004-2006 Lennart Poettering
 | 
					  Copyright 2004-2008 Lennart Poettering
 | 
				
			||||||
  Copyright 2006 Pierre Ossman <ossman@cendio.se> for Cendio AB
 | 
					  Copyright 2006 Pierre Ossman <ossman@cendio.se> for Cendio AB
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  PulseAudio is free software; you can redistribute it and/or modify
 | 
					  PulseAudio is free software; you can redistribute it and/or modify
 | 
				
			||||||
| 
						 | 
					@ -228,6 +228,7 @@ int pa_scache_add_file(pa_core *c, const char *name, const char *filename, uint3
 | 
				
			||||||
    pa_proplist_sets(p, PA_PROP_MEDIA_FILENAME, filename);
 | 
					    pa_proplist_sets(p, PA_PROP_MEDIA_FILENAME, filename);
 | 
				
			||||||
    r = pa_scache_add_item(c, name, &ss, &map, &chunk, p, idx);
 | 
					    r = pa_scache_add_item(c, name, &ss, &map, &chunk, p, idx);
 | 
				
			||||||
    pa_memblock_unref(chunk.memblock);
 | 
					    pa_memblock_unref(chunk.memblock);
 | 
				
			||||||
 | 
					    pa_proplist_free(p);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    return r;
 | 
					    return r;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue