summaryrefslogtreecommitdiff
path: root/src/lib/evas
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/evas')
-rw-r--r--src/lib/evas/common/evas_tiler.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lib/evas/common/evas_tiler.c b/src/lib/evas/common/evas_tiler.c
index 91d8fd2ba4..d645d52319 100644
--- a/src/lib/evas/common/evas_tiler.c
+++ b/src/lib/evas/common/evas_tiler.c
@@ -109,7 +109,11 @@ evas_common_tilebuf_get_render_rects(Tilebuf *tb)
109 return NULL; 109 return NULL;
110 } 110 }
111 n = region_rects_num(region2); 111 n = region_rects_num(region2);
112 if (n <= 0) return NULL; 112 if (n <= 0)
113 {
114 region_free(region2);
115 return NULL;
116 }
113 117
114 rbuf = malloc(n * sizeof(Tilebuf_Rect)); 118 rbuf = malloc(n * sizeof(Tilebuf_Rect));
115 if (!rbuf) 119 if (!rbuf)