[vlc-devel] commit: lua_demux: fix object leaks. ( Rémi Duraffort )
git version control
git at videolan.org
Fri Mar 20 10:46:21 CET 2009
vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Fri Mar 20 10:04:37 2009 +0100| [c611e0c670c28d9b83076f756a583fb6e5e45693] | committer: Rémi Duraffort
lua_demux: fix object leaks.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c611e0c670c28d9b83076f756a583fb6e5e45693
---
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 dcde62e..140afa9 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 );
+ 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;
}
More information about the vlc-devel
mailing list