Commit 09f97682 authored by Rémi Duraffort's avatar Rémi Duraffort Committed by Jean-Baptiste Kempf

Fix object leaking when taking a snapshot.

(cherry picked from commit dbc2bb8a)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent f06973e4
......@@ -403,7 +403,11 @@ void AdvControlsWidget::snapshot()
{
vout_thread_t *p_vout =
(vout_thread_t *)vlc_object_find( p_intf, VLC_OBJECT_VOUT, FIND_ANYWHERE );
if( p_vout ) vout_Control( p_vout, VOUT_SNAPSHOT );
if( p_vout )
{
vout_Control( p_vout, VOUT_SNAPSHOT );
vlc_object_release( p_vout );
}
}
/* Function called when the button is clicked() */
......
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