jpeg pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=3e640ab2266eeb29f23c8f7f062e757a1b45a308

commit 3e640ab2266eeb29f23c8f7f062e757a1b45a308
Author: Jean-Philippe Andre <jp.an...@samsung.com>
Date:   Fri Sep 4 15:02:48 2015 +0900

    evas: Use malloc instead of calloc in context_dup
    
    Since we call memcpy right after, no need for calloc
---
 src/lib/evas/common/evas_draw_main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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)
    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;

-- 


Reply via email to