From: Rui Guo Date: Fri, 12 Jun 2009 03:39:55 +0000 (+0800) Subject: Fill in the lost unref call. Thanks Sadrul. X-Git-Url: https://repo.or.cz/w/screen-lua.git/commitdiff_plain/38d02e82a05eb166fccb8c6b57b246b2dd20e4b2 Fill in the lost unref call. Thanks Sadrul. --- diff --git a/src/lua.c b/src/lua.c index 9befa82..8a9c527 100644 --- a/src/lua.c +++ b/src/lua.c @@ -1159,6 +1159,7 @@ LuaUnRegEvent(lua_State *L) } else { + LuaHRef(L, (lua_handler)l->handler, 0); LuaFreeHandler(((lua_handler)&(l->handler))); unregister_listener(l); lua_pushboolean(L, 1);