forked from enlightenment/efl
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:
parent
e89253e597
commit
9d9e8ffab5
|
@ -374,7 +374,7 @@ evas_object_clip_recalc(Evas_Object_Protected_Data *obj)
|
||||||
static inline void
|
static inline void
|
||||||
evas_object_async_block(Evas_Object_Protected_Data *obj)
|
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_take(&(obj->layer->evas->lock_objects));
|
||||||
eina_lock_release(&(obj->layer->evas->lock_objects));
|
eina_lock_release(&(obj->layer->evas->lock_objects));
|
||||||
|
|
Loading…
Reference in New Issue