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:
parent
571ed7c5bf
commit
c3dab80fc1
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user