evas: Use malloc instead of calloc in context_dup

Since we call memcpy right after, no need for calloc
This commit is contained in:
Jean-Philippe Andre 2015-09-04 15:02:48 +09:00
parent ef0ec6bed3
commit 3e640ab226
1 changed files with 1 additions and 1 deletions

View File

@ -101,7 +101,7 @@ evas_common_draw_context_dup(RGBA_Draw_Context *dc)
RGBA_Draw_Context *dc2;
if (!dc) return evas_common_draw_context_new();
dc2 = calloc(1, sizeof(RGBA_Draw_Context));
dc2 = malloc(sizeof(RGBA_Draw_Context));
memcpy(dc2, dc, sizeof(RGBA_Draw_Context));
evas_common_draw_context_cutouts_dup(&dc2->cutout, &dc->cutout);
return dc2;