Unlock should be run *after* EINA_MAGIC_FAIL otherwise wrong info about the error...
authorTom Hacohen <tom@stosb.com>
Tue, 18 Jan 2011 08:34:14 +0000 (08:34 +0000)
committerTom Hacohen <tom@stosb.com>
Tue, 18 Jan 2011 08:34:14 +0000 (08:34 +0000)
SVN revision: 56209

legacy/eina/src/lib/eina_share_common.c

index bacd94a..86fb377 100644 (file)
@@ -111,8 +111,8 @@ static const char EINA_MAGIC_SHARE_HEAD_STR[] = "Eina Share Head";
    do {                                                          \
         if (!EINA_MAGIC_CHECK((d), _node_magic))    \
           {                                                           \
-             unlock;                                                   \
              EINA_MAGIC_FAIL((d), _node_magic);        \
+             unlock;                                                   \
           }                                                           \
      } while (0)