fix memleak: free X state structure

next
Michael Stapelberg 2011-01-04 22:39:24 +01:00
parent 545566e6ba
commit bf2c18cc33
1 changed files with 2 additions and 0 deletions

View File

@ -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;