Remove unnecessary free function 03/300503/1
authorInhong Han <inhong1.han@samsung.com>
Thu, 26 Oct 2023 08:07:17 +0000 (17:07 +0900)
committerInhong Han <inhong1.han@samsung.com>
Thu, 26 Oct 2023 08:07:17 +0000 (17:07 +0900)
Change-Id: I601cc1f192bc127b1ae4432c1a64c69592403f3a

ism/extras/wayland_immodule/wayland_imcontext.c

index e7c772a..ccf9960 100644 (file)
@@ -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);
     }
 }