theme: Fix crash at app shutdown 45/110845/1
authorAmitesh Singh <amitesh.sh@samsung.com>
Tue, 17 Jan 2017 07:35:11 +0000 (13:05 +0530)
committerMinkyu Kang <mk7.kang@samsung.com>
Wed, 18 Jan 2017 08:10:00 +0000 (17:10 +0900)
Although this api is not used within EFL, but could be used outside.

commit 055e905b84c702d746155dbd8f3b655a920a7577
Author: Jean-Philippe Andre <jp.andre@samsung.com>
Date:   Thu Dec 8 16:10:20 2016 +0900

    theme: Fix crash at app shutdown

    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

Change-Id: I27d3c806b43027b73634e7c378d936b41433f4c8
Signed-off-by: Amitesh Singh <amitesh.sh@samsung.com>
src/lib/elm_theme.c

index cda51eb81728e30aa6d8d39a7f12be448beb08f2..26edd1e49013b70fee3fc94a5cc77da7b4839110 100644 (file)
@@ -230,7 +230,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;