summaryrefslogtreecommitdiff
path: root/src/lib/eo/eo.c
diff options
context:
space:
mode:
authorMarcel Hollerbach <mail@marcel-hollerbach.de>2018-06-19 13:36:04 -0400
committerMike Blumenkrantz <zmike@samsung.com>2018-06-19 13:36:04 -0400
commit42018930487c37563745e86c75a1e7816a81fd41 (patch)
tree7a554b87acdcba9452f6021aa7ed060d51c196d3 /src/lib/eo/eo.c
parent6e46950169bf1a45658af302317f0b0eaa4ad93d (diff)
eo: make the debug build print leaked errors
Summary: Depends on D6328 Reviewers: devilhorns, zmike Reviewed By: zmike Subscribers: cedric, #committers, zmike Tags: #efl Differential Revision: https://phab.enlightenment.org/D6329
Diffstat (limited to 'src/lib/eo/eo.c')
-rw-r--r--src/lib/eo/eo.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/lib/eo/eo.c b/src/lib/eo/eo.c
index 6dbd66b..680dc1f 100644
--- a/src/lib/eo/eo.c
+++ b/src/lib/eo/eo.c
@@ -2330,6 +2330,22 @@ efl_object_shutdown(void)
2330 if (--_efl_object_init_count > 0) 2330 if (--_efl_object_init_count > 0)
2331 return EINA_TRUE; 2331 return EINA_TRUE;
2332 2332
2333#ifdef EO_DEBUG
2334 {
2335 Efl_Object *obj;
2336 Eina_Iterator *objects;
2337 objects = eo_objects_iterator_new();
2338 printf("Objects leaked by EO:\n");
2339 printf("class@pointer - user-refcount internal-refcount\n");
2340 EINA_ITERATOR_FOREACH(objects, obj)
2341 {
2342 printf("%s@%p - %d %d \n", efl_class_name_get(obj), obj, efl_ref_count(obj), ___efl_ref2_count(obj));
2343 }
2344 eina_iterator_free(objects);
2345 }
2346#endif
2347
2348
2333 eina_log_timing(_eo_log_dom, 2349 eina_log_timing(_eo_log_dom,
2334 EINA_LOG_STATE_START, 2350 EINA_LOG_STATE_START,
2335 EINA_LOG_STATE_SHUTDOWN); 2351 EINA_LOG_STATE_SHUTDOWN);