fix a memory leak
authorLennart Poettering <lennart@poettering.net>
Wed, 7 May 2008 20:34:39 +0000 (20:34 +0000)
committerLennart Poettering <lennart@poettering.net>
Wed, 7 May 2008 20:34:39 +0000 (20:34 +0000)
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2383 fefdeb5f-60dc-0310-8127-8f9354f1896f

src/pulsecore/core-scache.c

index 018b283..e554600 100644 (file)
@@ -3,7 +3,7 @@
 /***
   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
 
   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);
     r = pa_scache_add_item(c, name, &ss, &map, &chunk, p, idx);
     pa_memblock_unref(chunk.memblock);
+    pa_proplist_free(p);
 
     return r;
 }