combine: Fix crash in output freeing
authorTanu Kaskinen <tanu.kaskinen@linux.intel.com>
Tue, 18 Jun 2013 18:21:08 +0000 (21:21 +0300)
committerTanu Kaskinen <tanu.kaskinen@linux.intel.com>
Wed, 19 Jun 2013 15:21:36 +0000 (18:21 +0300)
The outputs are removed from the idxset before output_free() is
called. Trying to remove them again in output_free(), and asserting
that it should succeed caused crashing whenever outputs were freed.

This bug was introduced in commit
061878b5a47ed9aa05d12430b039874b63c29a84.

BugLink: https://bugs.freedesktop.org/show_bug.cgi?id=65901
src/modules/module-combine-sink.c

index 7d660f086b99950931ea703119d02bce1a2b3900..faf65c22cb71c4b1b163c40dc5e2f4224c25d863 100644 (file)
@@ -923,8 +923,6 @@ static void output_free(struct output *o) {
     pa_assert(o);
 
     output_disable(o);
-
-    pa_assert_se(pa_idxset_remove_by_data(o->userdata->outputs, o, NULL));
     update_description(o->userdata);
 
     if (o->inq_rtpoll_item_read)