aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/evas/canvas/render2
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2016-07-08 12:05:08 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2016-07-08 12:05:08 +0900
commit1e4b63e885bdb02e09794b5a2f3238f8daa41846 (patch)
tree82d7f5a4771026292995f00bf99d28cc6bef6e36 /src/lib/evas/canvas/render2
parentelm view list - just be less obviously a possible bug to coverity (diff)
downloadefl-1e4b63e885bdb02e09794b5a2f3238f8daa41846.tar.gz
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.
Diffstat (limited to 'src/lib/evas/canvas/render2')
-rw-r--r--src/lib/evas/canvas/render2/region.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/lib/evas/canvas/render2/region.c b/src/lib/evas/canvas/render2/region.c
index d6974e3b91..5175ee147a 100644
--- a/src/lib/evas/canvas/render2/region.c
+++ b/src/lib/evas/canvas/render2/region.c
@@ -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)
{