[vlc-commits] commit: lua_demux: fix object leak. ( Rémi Duraffort )
git at videolan.org
git at videolan.org
Mon Jul 19 22:40:34 CEST 2010
vlc/vlc-1.1 | branch: master | Rémi Duraffort <ivoire at videolan.org> | Mon Jul 19 22:29:47 2010 +0200| [0ddebdcfab74fe0436b31a9a84282ad2023d5066] | committer: Rémi Denis-Courmont
lua_demux: fix object leak.
(cherry picked from commit dc4b98a9646e9cfa00d66a894e0aeadf59f03643)
Signed-off-by: Rémi Duraffort <ivoire at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-1.1.git/?a=commit;h=0ddebdcfab74fe0436b31a9a84282ad2023d5066
---
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