forked from enlightenment/efl
[PATCH 1/3] checking if the pointer is null in edje_cache.c
SVN revision: 51255
This commit is contained in:
parent
ed847ee5aa
commit
7a4e626074
|
@ -429,17 +429,16 @@ _edje_cache_coll_unref(Edje_File *edf, Edje_Part_Collection *edc)
|
||||||
if (edc->references != 0) return;
|
if (edc->references != 0) return;
|
||||||
|
|
||||||
ce = eina_hash_find(edf->collection, edc->part);
|
ce = eina_hash_find(edf->collection, edc->part);
|
||||||
|
if (!ce)
|
||||||
if (ce->ref)
|
{
|
||||||
|
ERR("Something is wrong with reference count of '%s'.", edc->part);
|
||||||
|
}
|
||||||
|
else if (ce->ref)
|
||||||
{
|
{
|
||||||
ce->ref = NULL;
|
ce->ref = NULL;
|
||||||
edf->collection_cache = eina_list_prepend(edf->collection_cache, edc);
|
edf->collection_cache = eina_list_prepend(edf->collection_cache, edc);
|
||||||
_edje_cache_coll_clean(edf);
|
_edje_cache_coll_clean(edf);
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
ERR("Something is wrong with reference count of '%s'.", edc->part);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
Loading…
Reference in New Issue