evas regions in render2 - work around coverity complaints

CID 1352392 is a false positive as the ptr is not dereferenced, but
not making coverity confused it good.
This commit is contained in:
Carsten Haitzler 2016-07-08 12:05:08 +09:00
parent 57e8e662b3
commit 1e4b63e885
1 changed files with 6 additions and 2 deletions

View File

@ -784,15 +784,19 @@ region_intersect(Region *dest, Region *source)
!OVERLAP(&dest->bound, &source->bound))
{
// Covers about 20% of all cases
FREE_DATA(dest);
dest->bound.x2 = dest->bound.x1;
dest->bound.y2 = dest->bound.y1;
if (PIXREGION_NAR(dest) || PIXREGION_NAR(source))
{
FREE_DATA(dest);
dest->data = (Region_Data *)&_region_brokendata;
return EINA_FALSE;
}
else dest->data = (Region_Data *)&_region_emptydata;
else
{
FREE_DATA(dest);
dest->data = (Region_Data *)&_region_emptydata;
}
}
else if (!dest->data && !source->data)
{