evas_object_del(ed);
}
+static void __free_object_info(Object_Info* object_info)
+{
+ if (NULL == object_info) {
+ return;
+ }
+
+ free(object_info->type);
+ free(object_info->group);
+ free(object_info->color_class);
+ free(object_info->part_name);
+ free(object_info->part_state);
+ free(object_info->image_name);
+ free(object_info->text);
+ free(object_info->edje_file);
+ free(object_info);
+}
+
static void
_obj_tree_items(Ea_Util_Mgr *util_mgr, Evas_Object *obj, Object_Info *parent)
{
return;
exit:
- free(object_info->type);
- free(object_info->group);
- free(object_info->color_class);
- free(object_info->part_name);
- free(object_info->part_state);
- free(object_info->image_name);
- free(object_info->text);
- free(object_info->edje_file);
- free(object_info);
+ __free_object_info(object_info);
+ object_info = NULL;
return;
}
if (evas_object_type_match(obj, "elm_popup") || evas_object_type_match(obj, "elm_ctxpopup")) find_popup = 1;
}
VC_ELM_LOG_DUMP(" [%d] %s : return", cnt, EVAS_OBJECT_TYPE_GET(obj));
+ return;
exit:
- free(object_info->type);
- free(object_info->group);
- free(object_info->color_class);
- free(object_info->part_name);
- free(object_info->part_state);
- free(object_info->image_name);
- free(object_info->text);
- free(object_info->edje_file);
- free(object_info);
+ __free_object_info(object_info);
+ object_info = NULL;
+ return;
}
static void