Safeguarding alloc-ed region againt trash.

This fixes external parts' state copies.



SVN revision: 50875
This commit is contained in:
Gustavo Lima Chaves 2010-08-06 22:03:32 +00:00
parent 8ea5943de6
commit e05e8b94e5
1 changed files with 2 additions and 1 deletions

View File

@ -2683,6 +2683,7 @@ _edje_edit_state_alloc(int type, Edje *ed)
\
Name = eina_mempool_malloc(ce->mp.Short, \
sizeof (Edje_Part_Description_##Type)); \
memset(Name, 0, sizeof(Edje_Part_Description_##Type)); \
pd = &Name->common; \
ce->count.Short++; \
break; \
@ -2824,7 +2825,7 @@ edje_edit_state_add(Evas_Object *obj, const char *part, const char *name, double
external = (Edje_Part_Description_External*) pd;
memset(&external->external_params, 0, sizeof (external->external_params));
external->external_params = NULL;
if (rp->part->source)
{