Commit 70492e68 authored by Antoine Cellerier's avatar Antoine Cellerier

* luaplaylist.c: Looks like stream_ReadLine results needs to be freed. (untested)

parent f397fdb6
...@@ -97,7 +97,15 @@ static int vlclua_readline( lua_State *p_state ) ...@@ -97,7 +97,15 @@ static int vlclua_readline( lua_State *p_state )
{ {
demux_t *p_demux = vlclua_get_demux( p_state ); demux_t *p_demux = vlclua_get_demux( p_state );
char *psz_line = stream_ReadLine( p_demux->s ); char *psz_line = stream_ReadLine( p_demux->s );
if( psz_line )
{
lua_pushstring( p_state, psz_line ); lua_pushstring( p_state, psz_line );
free( psz_line );
}
else
{
lua_pushnil( p_state );
}
return 1; return 1;
} }
......
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