summaryrefslogtreecommitdiff
path: root/src/lib/edje/edje_edit.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/edje/edje_edit.c')
-rw-r--r--src/lib/edje/edje_edit.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/edje/edje_edit.c b/src/lib/edje/edje_edit.c
index e97c44f3fc..da63dd7a9f 100644
--- a/src/lib/edje/edje_edit.c
+++ b/src/lib/edje/edje_edit.c
@@ -821,12 +821,14 @@ _edje_if_string_free(Edje *ed, const char **str)
821 Eet_Dictionary *dict; 821 Eet_Dictionary *dict;
822 822
823 if (!ed || !str) return; 823 if (!ed || !str) return;
824 if (!ed->file->allocated_strings) goto the_end;
824 825
825 dict = eet_dictionary_get(ed->file->ef); 826 dict = eet_dictionary_get(ed->file->ef);
826 827
827 if (!eet_dictionary_string_check(dict, *str)) 828 if (!eet_dictionary_string_check(dict, *str))
828 eina_stringshare_del(*str); 829 eina_stringshare_del(*str);
829 830
831 the_end:
830 *str = NULL; 832 *str = NULL;
831} 833}
832 834
@@ -837,6 +839,7 @@ _edje_if_string_replace(Edje *ed, const char **str, const char *str_new)
837 839
838 if (!ed || !str) return; 840 if (!ed || !str) return;
839 841
842 ed->file->allocated_strings = EINA_TRUE;
840 dict = eet_dictionary_get(ed->file->ef); 843 dict = eet_dictionary_get(ed->file->ef);
841 if (*str && eet_dictionary_string_check(dict, *str)) 844 if (*str && eet_dictionary_string_check(dict, *str))
842 *str = eina_stringshare_add(str_new); 845 *str = eina_stringshare_add(str_new);