e_comp_wl: fix the memory leak 67/310567/2
authorSooChan Lim <sc1.lim@samsung.com>
Thu, 2 May 2024 02:09:30 +0000 (11:09 +0900)
committerJihoon Kim <jihoon48.kim@samsung.com>
Thu, 2 May 2024 04:17:19 +0000 (04:17 +0000)
free evas_gl when glapi does not have evasglBindWaylandDisplay

Change-Id: I1af9675bfc3eb34eb72c4e7d56d77b9192f9a52a

src/bin/e_comp_wl.c

index 8a76245..249044c 100644 (file)
@@ -3327,6 +3327,7 @@ _e_comp_wl_gl_init(void *data EINA_UNUSED)
    if (!glapi->evasglBindWaylandDisplay)
      {
         evas_gl_free(evasgl);
+        free(evas_gl);
         e_comp->gl = 1;
         e_main_ts_end("\tE_Comp_Wl_GL Init Done");
         return;