summaryrefslogtreecommitdiffstats
path: root/src/polyp.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/polyp.c')
-rw-r--r--src/polyp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/polyp.c b/src/polyp.c
index 0f2a9181..6bc7ab33 100644
--- a/src/polyp.c
+++ b/src/polyp.c
@@ -541,7 +541,8 @@ struct pa_stream* pa_stream_new(
void pa_stream_free(struct pa_stream *s) {
assert(s && s->context);
- pa_pdispatch_unregister_reply(s->context->pdispatch, s);
+ if (s->context->pdispatch)
+ pa_pdispatch_unregister_reply(s->context->pdispatch, s);
free(s->name);