From 21ffd650803b202832023aac4e626cead8d11a58 Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Tue, 14 Aug 2012 19:53:46 -0400 Subject: fix invalid memory access --- ponymix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3