edje: Edje_Edit - fix setting NULL into string pointer

Some of edje_edit functions allows to set up NULL instead of string,
but by using _edje_if_string_free() function it should set variable into NULL,
so previous data won't appear anymore.

@fix
This commit is contained in:
Vitalii Vorobiov 2015-01-28 16:40:09 +02:00
parent 5b4e0ece68
commit 60b1f44fdf
1 changed files with 4 additions and 2 deletions

View File

@ -783,8 +783,10 @@ _edje_if_string_free(Edje *ed, const char **str)
if (!ed || !str) return;
dict = eet_dictionary_get(ed->file->ef);
if (eet_dictionary_string_check(dict, *str)) return;
eina_stringshare_del(*str);
if (!eet_dictionary_string_check(dict, *str))
eina_stringshare_del(*str);
*str = NULL;
}