summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Hollerbach <marcel-hollerbach@t-online.de>2016-11-09 13:10:36 +0100
committerMarcel Hollerbach <marcel-hollerbach@t-online.de>2016-11-09 13:10:36 +0100
commit6c8a80c8d815edfe6bbbada66085b417aba0dad2 (patch)
treea26a52faba141b7b5092063ea594b6384ee9898e
parent867cf1564a615aa5a8029940a991658b5d14b338 (diff)
downloadefl-devs/bu5hm4n/apb_fix.tar.gz
eo: null out classes on deletiondevs/bu5hm4n/apb_fix
-rw-r--r--src/lib/eo/eo.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib/eo/eo.c b/src/lib/eo/eo.c
index 46d69441e3..255b3ea6ca 100644
--- a/src/lib/eo/eo.c
+++ b/src/lib/eo/eo.c
@@ -1999,6 +1999,12 @@ efl_object_shutdown(void)
{
if (*cls_itr)
eo_class_free(*cls_itr);
+ /*
+ * There is the case that a class destructor
+ * can call functions on a object from a class
+ * which is already destructed, so better NULL that out
+ */
+ *cls_itr = NULL;
}
eina_lock_take(&_efl_class_creation_lock);