From: glima Date: Tue, 3 Aug 2010 16:45:37 +0000 (+0000) Subject: Fixing wrong memory allocations. X-Git-Tag: submit/2.0alpha-wayland/20121127.221958~1177 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ea3d3374319df9015377797225b8dbe46d966a89;p=profile%2Fivi%2Fedje.git Fixing wrong memory allocations. git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@50769 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- diff --git a/src/lib/edje_edit.c b/src/lib/edje_edit.c index 4307b07..3c0ce3e 100644 --- a/src/lib/edje_edit.c +++ b/src/lib/edje_edit.c @@ -6174,7 +6174,7 @@ _edje_edit_part_save(Edje_Part *ep) Old_Edje_Part *oep; unsigned int i; - oep = calloc(1, sizeof (oep)); + oep = calloc(1, sizeof(*oep)); if (!oep) return NULL; oep->name = ep->name; @@ -6235,7 +6235,7 @@ _edje_edit_collection_save(Eet_File *eetf, Edje_Part_Collection *epc) it = eina_hash_iterator_tuple_new(epc->data); EINA_ITERATOR_FOREACH(it, tu) { - di = malloc(sizeof (di)); + di = malloc(sizeof(*di)); if (!di) return EINA_FALSE; di->key = tu->key;