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

Fix potential crash (missing var_DelCallback).

parent 1446509e
...@@ -144,6 +144,9 @@ static void Destroy( vlc_object_t *p_this ) ...@@ -144,6 +144,9 @@ static void Destroy( vlc_object_t *p_this )
ListDestroy( &p_sys->overlays ); ListDestroy( &p_sys->overlays );
UnregisterCommand( p_filter ); UnregisterCommand( p_filter );
var_DelCallback( p_filter, "overlay-input", AdjustCallback, p_sys );
var_DelCallback( p_filter, "overlay-output", AdjustCallback, p_sys );
free( p_sys->psz_inputfile ); free( p_sys->psz_inputfile );
free( p_sys->psz_outputfile ); free( p_sys->psz_outputfile );
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