e_hwc_window: check if the ec is null. 28/212428/1
authorSooChan Lim <sc1.lim@samsung.com>
Wed, 21 Aug 2019 07:39:41 +0000 (16:39 +0900)
committerSooChan Lim <sc1.lim@samsung.com>
Wed, 21 Aug 2019 10:16:18 +0000 (19:16 +0900)
Change-Id: I1cbfe52828330312daf1e97b66082b7c181c61dd

src/bin/e_hwc_window.c

index 5da4fbd0ad3dc16a891d9fa358d42fae7ba93a37..e57dc505b5f86e468f8fbcaa5c2244662ddcec94 100644 (file)
@@ -674,6 +674,7 @@ e_hwc_window_free(E_Hwc_Window *hwc_window)
    EHWINF("Del", hwc_window->ec, hwc_window->hwc, hwc_window);
 
    ec = hwc_window->ec;
+   EINA_SAFETY_ON_NULL_RETURN(ec);
 
    ec->hwc_window = NULL;
    hwc_window->ec = NULL;