+
+ /* Empty other FIFOs to avoid a memory leak. */
+ for ( i++; i < p_aout->i_nb_inputs; i++ )
+ {
+ aout_fifo_t * p_fifo;
+ aout_buffer_t * p_deleted;
+
+ p_input = p_aout->pp_inputs[i];
+ if ( p_input->b_error ) continue;
+ p_fifo = &p_input->fifo;
+ p_deleted = p_fifo->p_first;
+ while ( p_deleted != NULL )
+ {
+ aout_buffer_t * p_next = p_deleted->p_next;
+ aout_BufferFree( p_deleted );
+ p_deleted = p_next;
+ }
+ p_fifo->p_first = NULL;
+ p_fifo->pp_last = &p_fifo->p_first;
+ }