eo: only return NULL when the object is destructed.
authorCedric Bail <cedric@osg.samsung.com>
Sun, 13 Aug 2017 20:14:31 +0000 (13:14 -0700)
committerCedric Bail <cedric@osg.samsung.com>
Sun, 13 Aug 2017 20:18:04 +0000 (13:18 -0700)
commit87acc90fc770daa6c6fe43e237885d92b625637c
tree52413508c99115ebbf49370276a7147f18733418
parent190af04983a8804ef2e59559b92261ca5ed138c7
eo: only return NULL when the object is destructed.

There is a problem with the previous version. The object can still be
alive due to the use of manual_free in evas. So you wouldn't be able
for example to remove a callback from an object that hasn't been
destroyed yet. If that callback is triggered by the destruction
of the object, you would end up with an unexpected and impossible to
prevent effect of access after free on a callback that you had removed.

Not sure if that still solve the original problem that the code was
trying to prevent in Ecore_Evas.
src/lib/eo/eo.c