Commit e8f97c66 authored by Rafaël Carré's avatar Rafaël Carré

Fixes segfault

parent 65cd4a4c
......@@ -226,8 +226,9 @@ void spu_Destroy( spu_t *p_spu )
static void spu_DeleteChain( spu_t *p_spu )
{
if( p_spu->i_filter )
while( p_spu->i_filter-- )
while( p_spu->i_filter )
{
p_spu->i_filter--;
module_Unneed( p_spu->pp_filter[p_spu->i_filter],
p_spu->pp_filter[p_spu->i_filter]->p_module );
free( p_spu->pp_filter[p_spu->i_filter]->p_owner );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment