From f9f12aec9111285aa649f5eb1afe7678d05ca8f4 Mon Sep 17 00:00:00 2001 From: Cedric BAIL Date: Wed, 2 Jul 2008 12:10:12 +0000 Subject: [PATCH] Fix INLINED_STRING allocation, this was causing the bug with edje_decc. SVN revision: 34980 --- legacy/eet/src/lib/eet_data.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/legacy/eet/src/lib/eet_data.c b/legacy/eet/src/lib/eet_data.c index d39bd5689c..b899310b89 100644 --- a/legacy/eet/src/lib/eet_data.c +++ b/legacy/eet/src/lib/eet_data.c @@ -2629,7 +2629,7 @@ eet_data_get_unknown(const Eet_Dictionary *ed, Eet_Data_Descriptor *edd, Eet_Dat if (type == EET_T_STRING) { - char **str, *str2; + char **str; str = (char **)(((char *)data)); if (*str) @@ -2647,6 +2647,17 @@ eet_data_get_unknown(const Eet_Dictionary *ed, Eet_Data_Descriptor *edd, Eet_Dat } } } + else if (type == EET_T_INLINED_STRING) + { + char **str; + + str = (char **)(((char *)data)); + if (*str) + { + *str = edd->func.str_alloc(*str); + _eet_freelist_str_add(*str); + } + } } else if (ede->subtype) {