[vlc-commits] commit: lua_demux: fix object leak. ( Rémi Duraffort )
git at videolan.org
git at videolan.org
Mon Jul 19 22:30:19 CEST 2010
vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Mon Jul 19 22:29:47 2010 +0200| [bf8e4fd301ed083b8ffc8cfda139686d7f9c24be] | committer: Rémi Duraffort
lua_demux: fix object leak.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=bf8e4fd301ed083b8ffc8cfda139686d7f9c24be
---
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 222cc19..3fe1ef7 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 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;
}
More information about the vlc-commits
mailing list