aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2012-08-14 19:53:46 -0400
committerDave Reisner <dreisner@archlinux.org>2012-08-14 19:53:46 -0400
commit21ffd650803b202832023aac4e626cead8d11a58 (patch)
tree17ce049f42afbefad475f8fdf3668e3059496b9a
parent9c1f6d96e2d64b4763ff02c23aa942849b28176b (diff)
downloadmirror-ponymix-21ffd650803b202832023aac4e626cead8d11a58.tar.gz
mirror-ponymix-21ffd650803b202832023aac4e626cead8d11a58.tar.bz2
mirror-ponymix-21ffd650803b202832023aac4e626cead8d11a58.zip
fix invalid memory access
-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);