]> git.mdlowis.com Git - proto/labwc.git/commit
rcxml.c: fix mem leak when deduplicating keybinds
authorConsolatis <35009135+Consolatis@users.noreply.github.com>
Fri, 15 Nov 2024 21:58:44 +0000 (22:58 +0100)
committerJohan Malm <johanmalm@users.noreply.github.com>
Sat, 16 Nov 2024 22:13:17 +0000 (22:13 +0000)
commit675480105270eb095a9d3178aed345712927e8ff
tree0560bbc93109b84c1682011048d2a51886d92aec
parent07110d41ff9aaa945754f160a416cfcdb19c9a40
rcxml.c: fix mem leak when deduplicating keybinds

Before this patch `keybind->keysyms` wasn't free'd when
- deduplicating keybinds
- removing keybinds due to empty action list

This patch creates a shared `keybind_destroy()` helper
which gets used in all cases where a keybind is destroyed.
include/config/keybind.h
src/config/keybind.c
src/config/rcxml.c