Commit 165f575d authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Simple: fix memleak on quit

parent 7222bb1d
......@@ -39,13 +39,14 @@
* Module descriptor
*****************************************************************************/
static int OpenFilter( vlc_object_t * );
static void CloseFilter( vlc_object_t * );
vlc_module_begin ()
set_description( N_("Audio filter for simple channel mixing") )
set_category( CAT_AUDIO )
set_subcategory( SUBCAT_AUDIO_MISC )
set_capability( "audio converter", 10 )
set_callbacks( OpenFilter, NULL )
set_callbacks( OpenFilter, CloseFilter );
vlc_module_end ()
/*****************************************************************************
......@@ -302,6 +303,13 @@ static int OpenFilter( vlc_object_t *p_this )
return VLC_SUCCESS;
}
static void CloseFilter( vlc_object_t *p_this )
{
filter_t *p_filter = (filter_t *) p_this;
filter_sys_t *p_sys = p_filter->p_sys;
free( p_sys );
}
/*****************************************************************************
* Filter:
*****************************************************************************/
......
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