summaryrefslogtreecommitdiffstats
path: root/src/pulse/context.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/pulse/context.c')
-rw-r--r--src/pulse/context.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pulse/context.c b/src/pulse/context.c
index 55b49a79..b4641590 100644
--- a/src/pulse/context.c
+++ b/src/pulse/context.c
@@ -128,7 +128,6 @@ pa_context *pa_context_new(pa_mainloop_api *mainloop, const char *name) {
c->subscribe_callback = NULL;
c->subscribe_userdata = NULL;
- c->mempool = pa_mempool_new(1);
c->is_local = -1;
c->server_list = NULL;
c->server = NULL;
@@ -149,6 +148,8 @@ pa_context *pa_context_new(pa_mainloop_api *mainloop, const char *name) {
#endif
pa_client_conf_env(c->conf);
+ c->mempool = pa_mempool_new(!c->conf->disable_shm);
+
return c;
}