kbgwm

sucklessy floating window manager
git clone https://git.neuralcrash.com/kbgwm.git
Log | Files | Refs | README | LICENSE

commit 925f5a243e73933f6f78b848ac63b8066e8e1105
parent 60a78ac8bf0f69597a269c65a5b3d204b2161f13
Author: Kebigon <git@kebigon.xyz>
Date:   Wed, 11 Aug 2021 18:27:51 +0900

Fix memory issues raised by valgrind

Diffstat:
Mclient.c | 1+
Mkbgwm.c | 1+
Mxcbutils.c | 2++
3 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/client.c b/client.c @@ -93,6 +93,7 @@ void client_create(xcb_window_t id) new_client->id = id; new_client->maximized = false; + new_client->monitor = NULL; const bool position = hints.flags & (XCB_ICCCM_SIZE_HINT_US_POSITION | XCB_ICCCM_SIZE_HINT_P_POSITION); diff --git a/kbgwm.c b/kbgwm.c @@ -216,6 +216,7 @@ void setup_keyboard() } } + free(numlock); free(reply); } diff --git a/xcbutils.c b/xcbutils.c @@ -153,6 +153,8 @@ bool xcb_send_atom(struct client *client, xcb_atom_t atom) } } + xcb_icccm_get_wm_protocols_reply_wipe(&protocols); + // The client does not support WM_DELETE, let's kill it if (!supported) return false;