more null checks in evas to avoid segs.

SVN revision: 79167
This commit is contained in:
Carsten Haitzler 2012-11-12 14:45:07 +00:00
parent 4acb015724
commit 208ad94428
2 changed files with 1 additions and 5 deletions

View File

@ -219,26 +219,22 @@ _clip_set(Eo *eo_obj, void *_pd, va_list *list)
if (clip->delete_me)
{
CRIT("Setting deleted object %p as clip obj %p", eo_clip, eo_obj);
abort();
return;
}
if (obj->delete_me)
{
CRIT("Setting object %p as clip to deleted obj %p", eo_clip, eo_obj);
abort();
return;
}
if (!obj->layer)
{
CRIT("No evas surface associated with object (%p)", eo_obj);
abort();
return;
}
if ((obj->layer && clip->layer) &&
(obj->layer->evas != clip->layer->evas))
{
CRIT("Setting object %p from Evas (%p) to another Evas (%p)", obj, obj->layer->evas, clip->layer->evas);
abort();
return;
}