[PATCH 1/3] checking if the pointer is null in edje_cache.c

SVN revision: 51255
This commit is contained in:
Gustavo Lima Chaves 2010-08-17 16:37:01 +00:00
parent ed847ee5aa
commit 7a4e626074
1 changed files with 5 additions and 6 deletions

View File

@ -429,17 +429,16 @@ _edje_cache_coll_unref(Edje_File *edf, Edje_Part_Collection *edc)
if (edc->references != 0) return;
ce = eina_hash_find(edf->collection, edc->part);
if (ce->ref)
if (!ce)
{
ERR("Something is wrong with reference count of '%s'.", edc->part);
}
else if (ce->ref)
{
ce->ref = NULL;
edf->collection_cache = eina_list_prepend(edf->collection_cache, edc);
_edje_cache_coll_clean(edf);
}
else
{
ERR("Something is wrong with reference count of '%s'.", edc->part);
}
}
static void