From 6acb36f25d2322c7b01a31f4efd201ea7f366b1e Mon Sep 17 00:00:00 2001 From: Inhong Han Date: Thu, 26 Oct 2023 17:07:17 +0900 Subject: [PATCH] Remove unnecessary free function Change-Id: I601cc1f192bc127b1ae4432c1a64c69592403f3a --- ism/extras/wayland_immodule/wayland_imcontext.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/ism/extras/wayland_immodule/wayland_imcontext.c b/ism/extras/wayland_immodule/wayland_imcontext.c index e7c772a..ccf9960 100644 --- a/ism/extras/wayland_immodule/wayland_imcontext.c +++ b/ism/extras/wayland_immodule/wayland_imcontext.c @@ -1058,13 +1058,6 @@ _send_input_panel_hide_request(Ecore_IMF_Context *ctx) } } -static void _conformant_area_free (void *data EINA_UNUSED, void *ev) -{ - Ecore_Wl2_Event_Conformant_Change *e = ev; - free(e); - e = NULL; -} - static void add_conformant_change_event(Ecore_Wl2_Window *window) { Ecore_Wl2_Event_Conformant_Change *ev; @@ -1073,7 +1066,7 @@ static void add_conformant_change_event(Ecore_Wl2_Window *window) ev->win = ecore_wl2_window_id_get(window); ev->part_type = 1; ev->state = 0; - ecore_event_add(ECORE_WL2_EVENT_CONFORMANT_CHANGE, ev, _conformant_area_free, NULL); + ecore_event_add(ECORE_WL2_EVENT_CONFORMANT_CHANGE, ev, NULL, NULL); } } -- 2.7.4