aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ponymix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ponymix.c b/ponymix.c
index ebe5012..2468b81 100644
--- a/ponymix.c
+++ b/ponymix.c
@@ -643,7 +643,7 @@ static void pulse_deinit(struct pulseaudio_t *pulse)
pa_context_disconnect(pulse->cxt);
pa_mainloop_free(pulse->mainloop);
- while (node) {
+ while (node && pulse->head) {
node = pulse->head->next;
free(pulse->head->name);
free(pulse->head->desc);