fix edje embryo scripts.

SVN revision: 18694
This commit is contained in:
Carsten Haitzler 2005-11-29 07:27:57 +00:00
parent d73081e84b
commit a976ce3d4e
1 changed files with 18 additions and 16 deletions

View File

@ -167,7 +167,9 @@ _edje_var_init(Edje *ed)
if (ed->var_pool) return;
ed->var_pool = calloc(1, sizeof(Edje_Var_Pool));
if (!ed->var_pool) return;
embryo_program_vm_push(ed->collection->script);
ed->var_pool->size = embryo_program_variable_count_get(ed->collection->script);
embryo_program_vm_pop(ed->collection->script);
ed->var_pool->vars = calloc(1, sizeof(Edje_Var) * ed->var_pool->size);
}