used ELM_NEW instead of malloc
authorshilpa singh <shilpa.singh@samsung.com>
Tue, 24 Aug 2010 08:19:24 +0000 (17:19 +0900)
committershilpa singh <shilpa.singh@samsung.com>
Tue, 24 Aug 2010 08:19:24 +0000 (17:19 +0900)
src/lib/elm_popup.c

index b4841b1..0fe591c 100644 (file)
@@ -266,7 +266,7 @@ _elm_popup_add_button(Evas_Object *obj, const char *text, int response_id)
    Evas_Object *btn;\r
    \r
    if (!wd) return NULL;\r
-   Action_Area_Data *adata = ELM_NEW(sizeof(Action_Area_Data)); \r
+   Action_Area_Data *adata = ELM_NEW(Action_Area_Data); \r
    btn = elm_button_add(obj);\r
    snprintf(buf, sizeof(buf), "popup_button/%s", elm_widget_style_get(obj));\r
    elm_object_style_set(btn, buf);\r