Fix INLINED_STRING allocation, this was causing the bug with edje_decc.
authorcedric <cedric>
Wed, 2 Jul 2008 12:10:12 +0000 (12:10 +0000)
committercedric <cedric@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Wed, 2 Jul 2008 12:10:12 +0000 (12:10 +0000)
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/e17/libs/eet@34980 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/eet_data.c

index d39bd56..b899310 100644 (file)
@@ -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)
      {