summaryrefslogtreecommitdiff
path: root/src/lib/evas/common
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2015-09-04 15:02:48 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2015-09-04 15:02:48 +0900
commit3e640ab2266eeb29f23c8f7f062e757a1b45a308 (patch)
tree242c2edf2ab98244f5c5eebbaea540078716ffc0 /src/lib/evas/common
parentef0ec6bed335175d74e64c99d68e07a97110c86d (diff)
evas: Use malloc instead of calloc in context_dup
Since we call memcpy right after, no need for calloc
Diffstat (limited to 'src/lib/evas/common')
-rw-r--r--src/lib/evas/common/evas_draw_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/evas/common/evas_draw_main.c b/src/lib/evas/common/evas_draw_main.c
index 5830d70..53d57dd 100644
--- a/src/lib/evas/common/evas_draw_main.c
+++ b/src/lib/evas/common/evas_draw_main.c
@@ -101,7 +101,7 @@ evas_common_draw_context_dup(RGBA_Draw_Context *dc)
101 RGBA_Draw_Context *dc2; 101 RGBA_Draw_Context *dc2;
102 102
103 if (!dc) return evas_common_draw_context_new(); 103 if (!dc) return evas_common_draw_context_new();
104 dc2 = calloc(1, sizeof(RGBA_Draw_Context)); 104 dc2 = malloc(sizeof(RGBA_Draw_Context));
105 memcpy(dc2, dc, sizeof(RGBA_Draw_Context)); 105 memcpy(dc2, dc, sizeof(RGBA_Draw_Context));
106 evas_common_draw_context_cutouts_dup(&dc2->cutout, &dc->cutout); 106 evas_common_draw_context_cutouts_dup(&dc2->cutout, &dc->cutout);
107 return dc2; 107 return dc2;