Commit c611e0c6 authored by Rémi Duraffort's avatar Rémi Duraffort

lua_demux: fix object leaks.

parent b3a1444d
......@@ -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 );
pl_Release( p_demux );
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 ) ) );
pl_Release( p_demux );
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