forked from enlightenment/efl
Safeguarding alloc-ed region againt trash.
This fixes external parts' state copies. SVN revision: 50875
This commit is contained in:
parent
8ea5943de6
commit
e05e8b94e5
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue