From b967702059d994909de0f62b9eaea1cbfbc0c226 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 29 Oct 2008 20:38:20 +0100 Subject: 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. --- src/output/pulse_plugin.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/output') diff --git a/src/output/pulse_plugin.c b/src/output/pulse_plugin.c index 64b5c22d2..2104fe81e 100644 --- a/src/output/pulse_plugin.c +++ b/src/output/pulse_plugin.c @@ -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; } } -- cgit v1.2.3