1
0
Fork 0
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:
André Marçais 2020-06-02 11:29:46 -04:00
parent 58b6f3ba96
commit 44aae23493

4
xcb.c
View file

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