mirror of
https://github.com/Raymo111/i3lock-color.git
synced 2024-11-11 13:50:52 -05:00
Fixed forgetting to free in xcb_get_key_group_index.
This commit is contained in:
parent
58b6f3ba96
commit
44aae23493
1 changed files with 3 additions and 1 deletions
4
xcb.c
4
xcb.c
|
@ -542,7 +542,9 @@ uint8_t xcb_get_key_group_index(xcb_connection_t *conn) {
|
|||
xcb_xkb_get_state_reply_t* reply = NULL;
|
||||
cookie = xcb_xkb_get_state(conn, XCB_XKB_ID_USE_CORE_KBD);
|
||||
reply = xcb_xkb_get_state_reply(conn, cookie, NULL);
|
||||
return reply->group;
|
||||
uint8_t ans = reply->group;
|
||||
free(reply);
|
||||
return ans;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue