efl: more valgrind related fixes on eina_cow

SVN revision: 83311
This commit is contained in:
Boris Faure 2013-01-24 21:42:18 +00:00
parent 08b96ebc1c
commit fb3c280a95
1 changed files with 2 additions and 2 deletions

View File

@ -341,12 +341,12 @@ eina_cow_free(Eina_Cow *cow, const Eina_Cow_Data *data)
VALGRIND_MAKE_MEM_DEFINED(ref, sizeof (ref));
#endif
ref->refcount--;
if (ref->refcount > 0) return ;
#ifndef NVALGRIND
VALGRIND_MAKE_MEM_NOACCESS(ref, sizeof (ref));
#endif
if (ref->refcount > 0) return ;
#ifndef NVALGRIND
VALGRIND_MAKE_MEM_DEFINED(ref, sizeof (ref));
#endif