use E_NEW & E_FREE macros

SVN revision: 40680
devs/princeamd/enlightenment-0.17-elive
Christopher Michael 14 years ago
parent 3f11b601c6
commit 6fd36aa8b4
  1. 4
      src/bin/e_pan.c

@ -171,7 +171,7 @@ _e_smart_add(Evas_Object *obj)
{
E_Smart_Data *sd;
sd = calloc(1, sizeof(E_Smart_Data));
sd = E_NEW(fSmart_Data, 1);
if (!sd) return;
sd->smart_obj = obj;
sd->x = 0;
@ -186,7 +186,7 @@ _e_smart_del(Evas_Object *obj)
{
INTERNAL_ENTRY;
e_pan_child_set(obj, NULL);
free(sd);
E_FREE(sd);
}
static void

Loading…
Cancel
Save