Fix a crash in screen_schedule()
authorGuo Rui <firemeteor@Adam.(none)>
Mon, 13 Jul 2009 16:03:32 +0000 (14 00:03 +0800)
committerGuo Rui <firemeteor@Adam.(none)>
Mon, 13 Jul 2009 16:03:32 +0000 (14 00:03 +0800)
src/lua.c

index a4f198a..866c1df 100644 (file)
--- a/src/lua.c
+++ b/src/lua.c
@@ -1003,6 +1003,8 @@ screen_schedule(lua_State *L)
       Free(ev);
       luaL_error(L, "Out of Memory");
     }
+  si->lh = lh;
+  si->L = L;
 
   ev->type = EV_TIMEOUT;
   ev->data = (char *)si;