summaryrefslogtreecommitdiff
path: root/src/lib/edje
diff options
context:
space:
mode:
authorVitalii Vorobiov <vi.vorobiov@samsung.com>2015-01-28 16:40:09 +0200
committerVitalii Vorobiov <vi.vorobiov@samsung.com>2015-01-28 16:40:09 +0200
commit60b1f44fdf7c9a8771554ff95c4bf2a4581faaac (patch)
treeb33670b8ead22637fd10546063454eaad6004fd1 /src/lib/edje
parent5b4e0ece687ac50a32f8e33cd45751e29ec121f4 (diff)
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
Diffstat (limited to 'src/lib/edje')
-rw-r--r--src/lib/edje/edje_edit.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/lib/edje/edje_edit.c b/src/lib/edje/edje_edit.c
index 03fc194bfc..55a262dd31 100644
--- a/src/lib/edje/edje_edit.c
+++ b/src/lib/edje/edje_edit.c
@@ -783,8 +783,10 @@ _edje_if_string_free(Edje *ed, const char **str)
783 if (!ed || !str) return; 783 if (!ed || !str) return;
784 784
785 dict = eet_dictionary_get(ed->file->ef); 785 dict = eet_dictionary_get(ed->file->ef);
786 if (eet_dictionary_string_check(dict, *str)) return; 786
787 eina_stringshare_del(*str); 787 if (!eet_dictionary_string_check(dict, *str))
788 eina_stringshare_del(*str);
789
788 *str = NULL; 790 *str = NULL;
789} 791}
790 792