From: Michael Stapelberg Date: Tue, 4 Jan 2011 21:39:24 +0000 (+0100) Subject: fix memleak: free X state structure X-Git-Tag: tree-pr2~140 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=bf2c18cc331ddbc16c565fb3939ae55e6bd01070;p=i3%2Fi3 fix memleak: free X state structure --- diff --git a/src/x.c b/src/x.c index fa003020..bcdb07ca 100644 --- a/src/x.c +++ b/src/x.c @@ -168,6 +168,8 @@ void x_con_kill(Con *con) { state = state_for_frame(con->frame); CIRCLEQ_REMOVE(&state_head, state, state); CIRCLEQ_REMOVE(&old_state_head, state, old_state); + FREE(state->name); + free(state); /* Invalidate focused_id to correctly focus new windows with the same ID */ focused_id = XCB_NONE;