Fix an unbalanced lua stack operation

ewmh_process_state_atom() does a luaA_object_push() at its beginning, but it
doesn't pop that object again. Fix this by, well, popping the object at the end
of the function again.

Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
Uli Schlachter 2010-08-03 11:25:54 +02:00
parent 402870687b
commit a77209c7fe
1 changed files with 2 additions and 0 deletions

2
ewmh.c
View File

@ -333,6 +333,8 @@ ewmh_process_state_atom(client_t *c, xcb_atom_t state, int set)
else if(set == _NET_WM_STATE_TOGGLE)
client_set_urgent(globalconf.L, -1, !c->urgent);
}
lua_pop(globalconf.L, 1);
}
int