1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-11-17 18:45:10 +00:00

Fix memory leak for keyboard_layout

see also https://github.com/brndnmtthws/conky/issues/968
This commit is contained in:
Christian Kögler 2021-01-24 23:33:43 +01:00 committed by Brenden Matthews
parent 571ed7c5bf
commit c3dab80fc1

View File

@ -1334,6 +1334,7 @@ void print_keyboard_layout(struct text_object *obj, char *p,
snprintf(p, p_max_size, "%s", (group != NULL ? group : "unknown")); snprintf(p, p_max_size, "%s", (group != NULL ? group : "unknown"));
XFree(group); XFree(group);
XkbFreeKeyboard(desc, XkbGBN_AllComponentsMask, True);
} }
void print_mouse_speed(struct text_object *obj, char *p, void print_mouse_speed(struct text_object *obj, char *p,