hermet pushed a commit to branch master.
commit 46ba77d4f4eb3be3fbfc02adead3d0a61be00c40
Author: ChunEon Park <[email protected]>
Date: Thu Jul 11 14:03:29 2013 +0900
evas - print ERR if the object coundn't be deleted when it's ref count is
more than 0.
In this case, evas_free() won't be exit because of the infinite loop.
---
src/lib/evas/canvas/evas_main.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/src/lib/evas/canvas/evas_main.c b/src/lib/evas/canvas/evas_main.c
index 76b5b91..b29e547 100644
--- a/src/lib/evas/canvas/evas_main.c
+++ b/src/lib/evas/canvas/evas_main.c
@@ -216,7 +216,11 @@ _destructor(Eo *eo_e, void *_pd, va_list *list EINA_UNUSED)
EINA_INLIST_FOREACH(lay->objects, o)
{
if (!o->delete_me)
- del = EINA_TRUE;
+ {
+ if (o->ref > 0)
+ ERR("obj(%p, %s) ref count(%d) is more than 0. This
object couldn't be deleted", o, o->type, o->ref);
+ del = EINA_TRUE;
+ }
}
}
}
--
------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk