Commit d5fd7516 authored by Rémi Duraffort's avatar Rémi Duraffort

free(NULL) is safe.

parent 6b057b5e
......@@ -466,8 +466,7 @@ static int filter_chain_DeleteFilterInternal( filter_chain_t *p_chain,
vlc_object_release( p_filter );
vlc_mouse_t *p_mouse = vlc_array_item_at_index( &p_chain->mouses, i_filter_idx );
if( p_mouse )
free( p_mouse );
free( p_mouse );
vlc_array_remove( &p_chain->mouses, i_filter_idx );
/* FIXME: check fmt_in/fmt_out consitency */
......
......@@ -339,8 +339,7 @@ int utf8_loaddir( DIR *dir, char ***namelist,
for( i = 0; i < num; i++ )
free( tab[i] );
if( tab != NULL )
free( tab );
free( tab );
}
}
return -1;
......
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