summaryrefslogtreecommitdiff
path: root/src/lib/edje/edje_textblock_styles.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/edje/edje_textblock_styles.c')
-rw-r--r--src/lib/edje/edje_textblock_styles.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/lib/edje/edje_textblock_styles.c b/src/lib/edje/edje_textblock_styles.c
index 0cf8a05315..2fef836378 100644
--- a/src/lib/edje/edje_textblock_styles.c
+++ b/src/lib/edje/edje_textblock_styles.c
@@ -463,7 +463,8 @@ _edje_textblock_style_parse_and_fix(Edje_File *edf)
463 /* Add and Handle tag parsed data */ 463 /* Add and Handle tag parsed data */
464 if (ts) 464 if (ts)
465 { 465 {
466 if (eet_dictionary_string_check(eet_dictionary_get(edf->ef), tag->value) == 0) 466 if (edf->allocated_strings &&
467 eet_dictionary_string_check(eet_dictionary_get(edf->ef), tag->value) == 0)
467 eina_stringshare_del(tag->value); 468 eina_stringshare_del(tag->value);
468 tag->value = eina_stringshare_add(ts); 469 tag->value = eina_stringshare_add(ts);
469 eina_strbuf_append(txt, tag->value); 470 eina_strbuf_append(txt, tag->value);
@@ -522,7 +523,9 @@ _edje_textblock_style_cleanup(Edje_File *edf)
522 523
523 EINA_LIST_FREE(stl->tags, tag) 524 EINA_LIST_FREE(stl->tags, tag)
524 { 525 {
525 if (tag->value && eet_dictionary_string_check(eet_dictionary_get(edf->ef), tag->value) == 0) 526 if (edf->allocated_strings &&
527 tag->value &&
528 eet_dictionary_string_check(eet_dictionary_get(edf->ef), tag->value) == 0)
526 eina_stringshare_del(tag->value); 529 eina_stringshare_del(tag->value);
527 if (edf->free_strings) 530 if (edf->free_strings)
528 { 531 {