theme: Fix crash at app shutdown
authorJean-Philippe Andre <jp.andre@samsung.com>
Thu, 8 Dec 2016 07:10:20 +0000 (16:10 +0900)
committerJean-Philippe Andre <jp.andre@samsung.com>
Thu, 8 Dec 2016 07:30:34 +0000 (16:30 +0900)
The wrong hash was used to store theme data items. Obviously
this is an API that wasn't used within EFL thus untested. Yay.

@fix

src/lib/elementary/elm_theme.c

index f7a24514f3feb57ea022bc7f3597faa694b69f0e..9349fca29ab2b5c6e685f827dcdde1c5a136a2a1 100644 (file)
@@ -242,7 +242,7 @@ _elm_theme_find_data_try(Elm_Theme *th, const Eina_File *f, const char *key)
    free(data);
    if (t)
      {
-        eina_hash_add(th->cache, key, t);
+        eina_hash_add(th->cache_data, key, t);
         return t;
      }
    return NULL;