summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2019-07-10 15:02:56 -0400
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2019-07-10 21:19:07 +0200
commit9c07cd1b1a88ae4cddd560320d1c10591c21454e (patch)
tree53e2557fa06811e352a2cfeb64ba26b6ab1b3303
parentfce5645d804a8971dd27542c979dd27a7aa8bc1a (diff)
edje: check for user_defined hash existence before removing members
Differential Revision: https://phab.enlightenment.org/D9267
-rw-r--r--src/lib/edje/edje_util.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/edje/edje_util.c b/src/lib/edje/edje_util.c
index 5b5692beb3..20aeec4a53 100644
--- a/src/lib/edje/edje_util.c
+++ b/src/lib/edje/edje_util.c
@@ -176,7 +176,8 @@ _edje_user_definition_free(Edje_User_Defined *eud)
176 break; 176 break;
177 } 177 }
178 178
179 eina_hash_list_remove(eud->ed->user_defined, eud->part, eud); 179 /* edje may be destructing */
180 if (eud->ed->user_defined) eina_hash_list_remove(eud->ed->user_defined, eud->part, eud);
180 _edje_user_definition_free_internal(eud); 181 _edje_user_definition_free_internal(eud);
181} 182}
182 183