diff options
-rw-r--r-- | src/lib/elm_color_class.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/elm_color_class.c b/src/lib/elm_color_class.c index c2ea17cc0..856f59062 100644 --- a/src/lib/elm_color_class.c +++ b/src/lib/elm_color_class.c @@ -212,7 +212,7 @@ _colorclass_activate(void *data, const Eo_Event *event) } else { - cc->current = malloc(sizeof(Elm_Color_Overlay)); + cc->current = calloc(1, sizeof(Colorclass)); //actually Elm_Color_Overlay memcpy(cc->current, ecc, sizeof(Elm_Color_Overlay)); cc->current->name = eina_stringshare_ref(ecc->name); } |