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

Fix memleak.

parent d45b2b0b
...@@ -272,6 +272,7 @@ error: ...@@ -272,6 +272,7 @@ error:
osd_MenuDelete( p_this, p_sys->p_menu ); osd_MenuDelete( p_this, p_sys->p_menu );
p_sys->p_menu = NULL; p_sys->p_menu = NULL;
free( p_sys->psz_path );
free( p_sys->psz_file ); free( p_sys->psz_file );
free( p_sys ); free( p_sys );
return VLC_EGENERIC; return VLC_EGENERIC;
...@@ -324,6 +325,7 @@ static void DestroyFilter( vlc_object_t *p_this ) ...@@ -324,6 +325,7 @@ static void DestroyFilter( vlc_object_t *p_this )
{ {
osd_MenuDelete( p_filter, p_sys->p_menu ); osd_MenuDelete( p_filter, p_sys->p_menu );
free( p_sys->psz_path );
free( p_sys->psz_file ); free( p_sys->psz_file );
free( p_sys ); free( 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