From 6ad8a6eef5de727e1eb01d72c57fc04223caef04 Mon Sep 17 00:00:00 2001 From: DreamMaoMao <2523610504@qq.com> Date: Wed, 6 Aug 2025 12:04:44 +0800 Subject: [PATCH] fix: Fix memory leaks --- src/mango.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mango.c b/src/mango.c index 6ab139b..24fa35e 100644 --- a/src/mango.c +++ b/src/mango.c @@ -1971,6 +1971,7 @@ void cleanupmon(struct wl_listener *listener, void *data) { wlr_scene_output_destroy(m->scene_output); closemon(m); + free(m->pertag); free(m); } @@ -4509,7 +4510,6 @@ void setup(void) { input_method_manager = wlr_input_method_manager_v2_create(dpy); text_input_manager = wlr_text_input_manager_v3_create(dpy); - dwl_input_method_relay = calloc(1, sizeof(*dwl_input_method_relay)); dwl_input_method_relay = dwl_im_relay_create(); wl_global_create(dpy, &zdwl_ipc_manager_v2_interface, 2, NULL,