Commit b9677020 authored by Max Kellermann's avatar Max Kellermann

pulse: clear pa_simple pointer in pulse_close()

The pointer becomes invalid due to pa_simple_free(), which may lead to segmentation faults when the output is reopened later.
parent d692e925
......@@ -175,6 +175,7 @@ static void pulse_close(void *data)
if (pd->s) {
pa_simple_drain(pd->s, NULL);
pa_simple_free(pd->s);
pd->s = NULL;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment