rotation: added NULL check for ec before cleanup 49/119449/1
authorGwanglim Lee <gl77.lee@samsung.com>
Fri, 17 Mar 2017 04:50:23 +0000 (13:50 +0900)
committerGwanglim Lee <gl77.lee@samsung.com>
Fri, 17 Mar 2017 04:50:23 +0000 (13:50 +0900)
Change-Id: I9c28a2d86b56a6af3a7500b6e2abc8866bb48bef

src/rotation/e_mod_rotation_wl.c

index 4ff3e44..c67e02a 100644 (file)
@@ -2084,7 +2084,8 @@ _e_client_rotation_wait_update_pending_timeout(void *data)
    else
      WRN("Timeout Wait Update Pending (%p)", ec);
 
-   _e_client_rotation_wait_update_clear(ec);
+   if (ec)
+     _e_client_rotation_wait_update_clear(ec);
 
    return ECORE_CALLBACK_CANCEL;
 }