mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-07 13:30:03 -05:00
make sure we don't free the same connection twice
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1499 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
67766785a5
commit
a482b9fd99
1 changed files with 2 additions and 1 deletions
|
|
@ -123,7 +123,8 @@ static void connection_free(pa_object *o) {
|
|||
static void connection_drop(connection *c) {
|
||||
pa_assert(c);
|
||||
|
||||
pa_assert_se(pa_idxset_remove_by_data(c->protocol->connections, c, NULL) == c);
|
||||
if (!pa_idxset_remove_by_data(c->protocol->connections, c, NULL))
|
||||
return;
|
||||
|
||||
if (c->sink_input) {
|
||||
pa_sink_input_disconnect(c->sink_input);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue