e_presentation_time: fixed NULL dereference 19/219919/1
authorMinJeong Kim <minjjj.kim@samsung.com>
Wed, 11 Dec 2019 11:55:53 +0000 (20:55 +0900)
committerMinJeong Kim <minjjj.kim@samsung.com>
Wed, 11 Dec 2019 11:55:53 +0000 (20:55 +0900)
Change-Id: I7fecffa0280a8562e77e844635f925291f13fe4d
Signed-off-by: MinJeong Kim <minjjj.kim@samsung.com>
src/bin/e_presentation_time.c

index ae9a68898371a7e194d6786ced050a4bcd304d40..e2a8b3b8a07f0266def9c15de7b624c99ee0965b 100644 (file)
@@ -267,11 +267,13 @@ e_presentation_time_init(void)
    return EINA_TRUE;
 
 fail:
-   if (presentation->global)
-     wl_global_destroy(presentation->global);
-
    if (presentation)
-     E_FREE(presentation);
+     {
+        if (presentation->global)
+          wl_global_destroy(presentation->global);
+
+        E_FREE(presentation);
+     }
 
    return EINA_FALSE;
 }