evas: Use malloc instead of calloc in context_dup
authorJean-Philippe Andre <jp.andre@samsung.com>
Fri, 4 Sep 2015 06:02:48 +0000 (15:02 +0900)
committerJean-Philippe Andre <jp.andre@samsung.com>
Fri, 4 Sep 2015 06:02:48 +0000 (15:02 +0900)
Since we call memcpy right after, no need for calloc

src/lib/evas/common/evas_draw_main.c

index 5830d70..53d57dd 100644 (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;