Evas: Filter: Handle memory alloc error a little more gracefully

In this case, just set the filter type to none.

SVN revision: 58761
This commit is contained in:
Brett Nash 2011-04-20 14:44:26 +00:00
parent cb19804054
commit 044b02ce0e
1 changed files with 2 additions and 0 deletions

View File

@ -208,6 +208,8 @@ evas_object_filter_set(Evas_Object *o, Evas_Filter filter)
info->data = calloc(1, finfo->datasize);
if (!info->data)
{
o->filter = EVAS_FILTER_NONE;
return EINA_FALSE;
}
}
else