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.
This commit is contained in:
Max Kellermann 2008-10-29 20:38:20 +01:00
parent d692e925a4
commit b967702059

View File

@ -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;
}
}