forked from enlightenment/efl
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:
parent
5b4e0ece68
commit
60b1f44fdf
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue