This commits prints a lot of errors when running elm_test, for example:

ERR<24865>:eo ../../src/lib/eo/eo_ptr_indirection.x:280 
_eo_obj_pointer_get() obj_id (nil) is not pointing to a valid object. 
Maybe it has already been freed.

This is actually a valid message, and is caused because of calls on NULL 
in edje.

Cedric, fancy taking a look?

--
Tom.


On 14/04/14 10:55, Tom Hacohen wrote:
> tasn pushed a commit to branch master.
>
> http://git.enlightenment.org/core/efl.git/commit/?id=68a1f1941acdbde01a06983b7cb46624a2578abb
>
> commit 68a1f1941acdbde01a06983b7cb46624a2578abb
> Author: Tom Hacohen <t...@stosb.com>
> Date:   Mon Apr 14 10:34:57 2014 +0100
>
>      Eo: Fix class checking.
>
>      Without this patch, NULL, and random garbage are detected as classes.
>      This fixes is.
> ---
>   src/lib/eo/eo.c | 3 ++-
>   1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/src/lib/eo/eo.c b/src/lib/eo/eo.c
> index d207f20..a6c356a 100644
> --- a/src/lib/eo/eo.c
> +++ b/src/lib/eo/eo.c
> @@ -147,7 +147,8 @@ _eo_is_a_class(const Eo *eo_id)
>      if (!eo_id) return EINA_FALSE;
>      oid = ((Eo_Base *) eo_id)->id;
>   #endif
> -   return (((oid >> REF_TAG_SHIFT) & 0x1) == 0x0);
> +   return ((((oid >> REF_TAG_SHIFT) & 0x1) == 0x0) &&
> +         (oid & MASK_CLASS_TAG));
>   }
>
>   static inline _Eo_Class *
>



------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to