X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=grab_client.c;h=2b8c8d3e3d8e947789aa32c049403204948c1dc9;hp=729c8193a90d7f21edefa6b83b4f35db169bbbc6;hb=4fa8cb43454bc7e6d958433b1524fdc2f455f2ad;hpb=779cfd85fd90d1f9182deade08d5fe3f2f3a1530 diff --git a/grab_client.c b/grab_client.c index 729c8193..2b8c8d3e 100644 --- a/grab_client.c +++ b/grab_client.c @@ -140,7 +140,7 @@ static void gc_activate(struct grab_client *gc, struct sched *s) /** * Activate inactive grab clients if possible. * - * \param sched Needed to schedule the grab client task. + * \param s Needed to schedule the grab client task. * * This is called from audiod.c when the current audio file changes. It loops * over all inactive grab clients and checks each grab client's configuration @@ -166,9 +166,7 @@ void activate_grab_clients(struct sched *s) static int gc_close(struct grab_client *gc, int err) { - btr_remove_node(gc->btrn); - btr_free_node(gc->btrn); - gc->btrn = NULL; + btr_remove_node(&gc->btrn); PARA_INFO_LOG("closing gc: %s\n", para_strerror(-err)); list_move(&gc->node, &inactive_grab_client_list); if (err == -E_GC_WRITE || (gc->flags & GF_ONE_SHOT)) {