diff options
author | Max Kellermann <max@duempel.org> | 2008-10-29 20:38:20 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-10-29 20:38:20 +0100 |
commit | b967702059d994909de0f62b9eaea1cbfbc0c226 (patch) | |
tree | 4249a7fce6a3e01195eee834e577622413b84d4b /src/output/pulse_plugin.c | |
parent | d692e925a4a98e9cbe1b3f16536260cb328f076f (diff) | |
download | mpd-b967702059d994909de0f62b9eaea1cbfbc0c226.tar.gz mpd-b967702059d994909de0f62b9eaea1cbfbc0c226.tar.xz mpd-b967702059d994909de0f62b9eaea1cbfbc0c226.zip |
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.
Diffstat (limited to '')
-rw-r--r-- | src/output/pulse_plugin.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; } } |