event_callback.c: Don't pop too much.2/head
authorKim Alvefur <zash@zash.se>
Fri, 15 Mar 2013 15:04:44 +0000 (15 16:04 +0100)
committerKim Alvefur <zash@zash.se>
Fri, 15 Mar 2013 15:04:44 +0000 (15 16:04 +0100)
luaL_ref() just before pops one of the two items off the stack, so we
only need to pop one item after that.

src/event_callback.c

index a04bf24..494fba2 100644 (file)
@@ -34,7 +34,7 @@ void luaevent_callback(int fd, short event, void* p) {
        {
                cb->base->errorMessage = luaL_ref(L, LUA_REGISTRYINDEX);
                event_base_loopbreak(cb->base->base);
-               lua_pop(L, 2);
+               lua_pop(L, 1);
                return;
        }
        if(!cb->base) {