Commit 4b7fc754 authored by Rémi Duraffort's avatar Rémi Duraffort

lua: fix object leak.

parent 61662db5
......@@ -54,10 +54,14 @@ static int vlclua_fullscreen( lua_State *L )
if( !p_input ) return vlclua_error( L );
p_vout = input_GetVout( p_input );
if( !p_vout ) return vlclua_error( L );
#warning ^^ How about releasing the input?
if( !p_vout )
{
vlc_object_release( p_input );
return vlclua_error( L );
}
i_ret = vlclua_var_toggle_or_set( L, p_vout, "fullscreen" );
vlc_object_release( p_vout );
vlc_object_release( p_input );
return i_ret;
......
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