edje: Don't access a garbage pointer.

set null to avoid multiple access.
At 221 line, it tries to free tmp again.
This commit is contained in:
Hermet Park 2018-04-20 11:44:43 +09:00
parent 1179058017
commit 5ea2f94ffb
1 changed files with 1 additions and 0 deletions

View File

@ -102,6 +102,7 @@ code_parse_internal(Code *code)
{
if (tmp->str) free(tmp->str);
free(tmp);
tmp = NULL;
}
switch (token->type)