From a77209c7fe0caf7de273e062014c3841393e3cf4 Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Tue, 3 Aug 2010 11:25:54 +0200 Subject: [PATCH] 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 --- ewmh.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ewmh.c b/ewmh.c index 0c4a44b5..f38b93a1 100644 --- a/ewmh.c +++ b/ewmh.c @@ -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