]> git.sesse.net Git - vlc/commit
luahttp: fix scope of url handler variables
authorPierre Ynard <linkfanel@yahoo.fr>
Thu, 17 May 2012 22:05:02 +0000 (00:05 +0200)
committerPierre Ynard <linkfanel@yahoo.fr>
Thu, 17 May 2012 22:05:02 +0000 (00:05 +0200)
commit97ec634439692b403f1ce0fc2e966bd3a5c06073
tree1ec767d4e717517a17d75349ea04796a66a8b7af
parentd1b7c01a7480d25757e4c9df46eb3d74cc006d91
luahttp: fix scope of url handler variables

The url handlers were declared with local scope, meaning local to the
lua script file I assume. Since the interface doesn't wait at the end
of the lua script anymore, they would fall out of scope after interface
initialization. Then, when the interface was first accessed, garbage
collection was somehow triggered, unregistering all url callbacks,
incidentally triggering a deadlock.

Fixes #6673
share/lua/intf/http.lua