[pulseaudio-discuss] [PATCH 01/15] core: Free pa_core.nodes when freeing pa_core

Tanu Kaskinen tanu.kaskinen at linux.intel.com
Thu Feb 13 19:35:46 CET 2014


---
 src/pulsecore/core.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/pulsecore/core.c b/src/pulsecore/core.c
index cc8915c..f3bf588 100644
--- a/src/pulsecore/core.c
+++ b/src/pulsecore/core.c
@@ -170,6 +170,9 @@ static void core_free(pa_object *o) {
     /* Note: All modules and samples in the cache should be unloaded before
      * we get here */
 
+    pa_assert(pa_idxset_isempty(c->nodes));
+    pa_idxset_free(c->nodes, NULL);
+
     pa_assert(pa_idxset_isempty(c->scache));
     pa_idxset_free(c->scache, NULL);
 
-- 
1.8.3.1



More information about the pulseaudio-discuss mailing list