evas - handle case where layer->evas is null - don't crash

there seems to be a corner case where obj->layer->evas is null for an
object. i think during shutdown of a canvas.

@fix
This commit is contained in:
Carsten Haitzler 2015-08-12 10:45:52 +09:00
parent e89253e597
commit 9d9e8ffab5
1 changed files with 1 additions and 1 deletions

View File

@ -374,7 +374,7 @@ evas_object_clip_recalc(Evas_Object_Protected_Data *obj)
static inline void
evas_object_async_block(Evas_Object_Protected_Data *obj)
{
if ((obj) && (obj->layer))
if ((obj) && (obj->layer) && (obj->layer->evas))
{
eina_lock_take(&(obj->layer->evas->lock_objects));
eina_lock_release(&(obj->layer->evas->lock_objects));