forked from enlightenment/efl
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:
parent
57e8e662b3
commit
1e4b63e885
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue