[vlc-commits] commit: lua_demux: fix object leak. ( Rémi Duraffort )
git at videolan.org
git at videolan.org
Mon Jul 19 22:34:17 CEST 2010
vlc/vlc-1.1 | branch: master | Rémi Duraffort <ivoire at videolan.org> | Mon Jul 19 22:29:47 2010 +0200| [175455f31fa980dfbdcb7a7acc654f3ce728d98a] | committer: Rémi Duraffort
lua_demux: fix object leak.
(cherry picked from commit bf8e4fd301ed083b8ffc8cfda139686d7f9c24be)
Signed-off-by: Rémi Duraffort <ivoire at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-1.1.git/?a=commit;h=175455f31fa980dfbdcb7a7acc654f3ce728d98a
---
modules/misc/lua/demux.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/modules/misc/lua/demux.c b/modules/misc/lua/demux.c
index c3d3595..04f7144 100644
--- a/modules/misc/lua/demux.c
+++ b/modules/misc/lua/demux.c
@@ -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;
}
More information about the vlc-commits
mailing list