]> code.delx.au - pulseaudio/commitdiff
make sure we don't free the same connection twice
authorLennart Poettering <lennart@poettering.net>
Mon, 25 Jun 2007 22:33:04 +0000 (22:33 +0000)
committerLennart Poettering <lennart@poettering.net>
Mon, 25 Jun 2007 22:33:04 +0000 (22:33 +0000)
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1499 fefdeb5f-60dc-0310-8127-8f9354f1896f

src/pulsecore/protocol-simple.c

index fd304c67868c5ce55891dd75a4e4def4d0673d06..c423487a344a01bceeb07510288ea15af0d7cf54 100644 (file)
@@ -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);