X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=modules%2Fvideo_output%2Fsnapshot.c;h=9c2c63fb93107f35b9ec8133e0982c0021fdfa57;hb=c90ad6fd8e18eeff2f2278123bf5e5a9d23e8d76;hp=da923895e2deaeab9befb1118808aebb7e1b1199;hpb=57eba9e16e8051687dc8b9d80f7d8e352baf405e;p=vlc diff --git a/modules/video_output/snapshot.c b/modules/video_output/snapshot.c index da923895e2..9c2c63fb93 100644 --- a/modules/video_output/snapshot.c +++ b/modules/video_output/snapshot.c @@ -38,7 +38,6 @@ /***************************************************************************** * Preamble *****************************************************************************/ -#include #include #include @@ -324,13 +323,13 @@ static void Destroy( vlc_object_t *p_this ) vout_thread_t *p_vout = ( vout_thread_t * )p_this; int i_index; + var_Destroy( p_vout->p_sys->p_input, "snapshot-id" ); + vlc_object_release( p_vout->p_sys->p_input ); var_Destroy( p_this, "snapshot-width" ); var_Destroy( p_this, "snapshot-height" ); var_Destroy( p_this, "snapshot-datasize" ); - var_Destroy( p_this->p_libvlc_global, "snapshot-id" ); - for( i_index = 0 ; i_index < p_vout->p_sys->i_size ; i_index++ ) { free( p_vout->p_sys->p_list[ i_index ]->p_data );