diff options
| author | Lennart Poettering <lennart@poettering.net> | 2007-06-25 22:33:04 +0000 | 
|---|---|---|
| committer | Lennart Poettering <lennart@poettering.net> | 2007-06-25 22:33:04 +0000 | 
| commit | a482b9fd99a970cda92bef53dfac500c4ad6ecd9 (patch) | |
| tree | 37b8c8fd8e5a93ffa9d086db1c68fffc8a89bb9c /src/pulsecore/protocol-simple.c | |
| parent | 67766785a587ead4bf604ae789bc1112783ad97c (diff) | |
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
Diffstat (limited to 'src/pulsecore/protocol-simple.c')
| -rw-r--r-- | src/pulsecore/protocol-simple.c | 3 | 
1 files changed, 2 insertions, 1 deletions
| diff --git a/src/pulsecore/protocol-simple.c b/src/pulsecore/protocol-simple.c index fd304c67..c423487a 100644 --- a/src/pulsecore/protocol-simple.c +++ b/src/pulsecore/protocol-simple.c @@ -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); | 
