eina: more work around to limit problem.

This commit is contained in:
Cedric Bail 2013-12-04 16:31:49 +09:00
parent e4107b2936
commit c5db264e0a
1 changed files with 1 additions and 1 deletions

View File

@ -265,7 +265,7 @@ _eina_cow_gc(Eina_Cow *cow, Eina_Cow_GC *gc)
THIS IS A TEMPORARY WORK AROUND THAT SHOULD LIMIT PROBLEM
UNTIL WE KNOW WHY THERE IS A PROBLEM IN EINA_HASH.
*/
if (gc->ref->refcount == 0)
if (gc->ref->refcount == 0 || !gc->ref->togc)
{
eina_hash_del(cow->togc, &gc->ref, gc);
return ;