Commit 185a90ef authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

vorepository: Fix memleak

parent 95812a34
...@@ -512,7 +512,10 @@ static void Close(vlc_object_t *p_this) ...@@ -512,7 +512,10 @@ static void Close(vlc_object_t *p_this)
{ {
addons_finder_t *p_finder = (addons_finder_t*) p_this; addons_finder_t *p_finder = (addons_finder_t*) p_this;
if ( p_finder->p_sys->psz_tempfile ) if ( p_finder->p_sys->psz_tempfile )
{
vlc_unlink( p_finder->p_sys->psz_tempfile ); vlc_unlink( p_finder->p_sys->psz_tempfile );
free( p_finder->p_sys->psz_tempfile );
}
free( p_finder->p_sys ); free( p_finder->p_sys );
} }
......
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