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

lua_demux: fix object leak.

(cherry picked from commit dc4b98a9646e9cfa00d66a894e0aeadf59f03643)
Signed-off-by: default avatarRémi Duraffort <ivoire@videolan.org>
parent 2d22656e
......@@ -257,6 +257,7 @@ static int Demux( demux_t *p_demux )
{
msg_Warn( p_demux, "Error while runing 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 runing 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