eina: more work around to limit problem.
authorCedric Bail <cedric.bail@samsung.com>
Wed, 4 Dec 2013 07:31:49 +0000 (16:31 +0900)
committerCedric Bail <cedric.bail@samsung.com>
Wed, 4 Dec 2013 07:31:49 +0000 (16:31 +0900)
src/lib/eina/eina_cow.c

index 2dd8807..8600475 100644 (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 ;