Commit 81d5bdde authored by Laurent Aimar's avatar Laurent Aimar

Fixed an invalid free in input_item_DelInfo().

parent b73cf91a
...@@ -716,11 +716,9 @@ int input_item_DelInfo( input_item_t *p_i, ...@@ -716,11 +716,9 @@ int input_item_DelInfo( input_item_t *p_i,
} }
free( p_cat->pp_infos ); free( p_cat->pp_infos );
REMOVE_ELEM( p_i->pp_categories, p_i->i_categories, i_cat ); REMOVE_ELEM( p_i->pp_categories, p_i->i_categories, i_cat );
free( p_cat->psz_name );
free( p_cat );
} }
// Free the category
free( p_cat->psz_name );
free( p_cat );
vlc_mutex_unlock( &p_i->lock ); vlc_mutex_unlock( &p_i->lock );
......
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