Commit dc4b98a9 authored by Rémi Duraffort's avatar Rémi Duraffort Committed by Rémi Denis-Courmont

lua_demux: fix object leak.

parent b5746390
......@@ -257,6 +257,7 @@ static int Demux( demux_t *p_demux )
{
msg_Warn( p_demux, "Error while running script %s, "
"function parse() not found", psz_filename );
vlc_object_release( p_input_thread );
return VLC_EGENERIC;
}
......@@ -265,6 +266,7 @@ static int Demux( demux_t *p_demux )
msg_Warn( p_demux, "Error while running script %s, "
"function parse(): %s", psz_filename,
lua_tostring( L, lua_gettop( L ) ) );
vlc_object_release( p_input_thread );
return VLC_EGENERIC;
}
......
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