mirror of
https://github.com/vale981/spectrwm
synced 2025-03-05 09:51:38 -05:00
fix use after free
This commit is contained in:
parent
e50807c8ff
commit
32c4a83ea6
1 changed files with 2 additions and 2 deletions
|
@ -1015,10 +1015,10 @@ ewmh_get_win_state(struct ws_win *win)
|
||||||
states = xcb_get_property_value(r);
|
states = xcb_get_property_value(r);
|
||||||
n = xcb_get_property_value_length(r);
|
n = xcb_get_property_value_length(r);
|
||||||
|
|
||||||
free(r);
|
|
||||||
|
|
||||||
for (i = 0; i < n; i++)
|
for (i = 0; i < n; i++)
|
||||||
ewmh_update_win_state(win, states[i], _NET_WM_STATE_ADD);
|
ewmh_update_win_state(win, states[i], _NET_WM_STATE_ADD);
|
||||||
|
|
||||||
|
free(r);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* events */
|
/* events */
|
||||||
|
|
Loading…
Add table
Reference in a new issue