Commit 3576d6b1 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Why make it complicated when it can be simple

parent 3ff30fa9
......@@ -255,14 +255,17 @@ void __module_EndBank( vlc_object_t *p_this )
{
free( p_bank->pp_loaded_cache[p_bank->i_loaded_cache]->psz_file );
free( p_bank->pp_loaded_cache[p_bank->i_loaded_cache] );
if( !p_bank->i_loaded_cache ) free( p_bank->pp_loaded_cache );
}
if( p_bank->pp_loaded_cache )
free( p_bank->pp_loaded_cache );
while( p_bank->i_cache-- )
{
free( p_bank->pp_cache[p_bank->i_cache]->psz_file );
free( p_bank->pp_cache[p_bank->i_cache] );
if( !p_bank->i_cache ) free( p_bank->pp_cache );
}
if( p_bank->pp_cache )
free( p_bank->pp_cache );
#undef p_bank
#endif
......
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