summaryrefslogtreecommitdiffstats
path: root/src/core.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core.c')
-rw-r--r--src/core.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core.c b/src/core.c
index d9df38e1..ec38da91 100644
--- a/src/core.c
+++ b/src/core.c
@@ -6,6 +6,7 @@
#include "module.h"
#include "sink.h"
#include "source.h"
+#include "namereg.h"
struct core* core_new(struct pa_mainloop_api *m) {
struct core* c;
@@ -22,6 +23,7 @@ struct core* core_new(struct pa_mainloop_api *m) {
c->default_source_index = c->default_sink_index = IDXSET_INVALID;
c->modules = NULL;
+ c->namereg = NULL;
return c;
};
@@ -47,6 +49,8 @@ void core_free(struct core *c) {
assert(idxset_isempty(c->sink_inputs));
idxset_free(c->sink_inputs, NULL, NULL);
+ namereg_free(c);
+
free(c);
};