summaryrefslogtreecommitdiff
path: root/src/lib/evas/common/evas_draw_main.c
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2016-04-01 17:37:37 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2016-04-01 17:54:37 +0900
commitb132ce65ec755e282291f4fa8da46eafcc2af942 (patch)
tree174e41d9d46e2282709a142e3c73ed95553ae99a /src/lib/evas/common/evas_draw_main.c
parente438bd09b2642308112b31b8349235f0b850cb9c (diff)
evas - fix leak because cutouts_fre .. doesnt free - it just resets to 0
this works with 7166e6b85994b19a29f05c9e2b6d75a314a3cb91 and fixes a leak added because ... free does not free! evas_common_draw_context_cutouts_real_free(0 now actually frees the rects, but evas_common_draw_context_cutouts_free() before did not. @fix (follow on from 7166e6b85994b19a29f05c9e2b6d75a314a3cb91)
Diffstat (limited to 'src/lib/evas/common/evas_draw_main.c')
-rw-r--r--src/lib/evas/common/evas_draw_main.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/lib/evas/common/evas_draw_main.c b/src/lib/evas/common/evas_draw_main.c
index 460a296..289d6df 100644
--- a/src/lib/evas/common/evas_draw_main.c
+++ b/src/lib/evas/common/evas_draw_main.c
@@ -36,6 +36,14 @@ evas_common_draw_context_cutouts_free(Cutout_Rects* rects)
36} 36}
37 37
38EAPI void 38EAPI void
39evas_common_draw_context_cutouts_real_free(Cutout_Rects* rects)
40{
41 if (!rects) return;
42 free(rects->rects);
43 free(rects);
44}
45
46EAPI void
39evas_common_draw_context_cutouts_del(Cutout_Rects* rects, int idx) 47evas_common_draw_context_cutouts_del(Cutout_Rects* rects, int idx)
40{ 48{
41 if ((idx >= 0) && (idx < rects->active)) 49 if ((idx >= 0) && (idx < rects->active))