SVN revision: 13396
This commit is contained in:
sebastid 2005-02-16 11:31:21 +00:00 committed by sebastid
parent 6b50c58bfa
commit 9718ef9fa7
1 changed files with 2 additions and 6 deletions

View File

@ -224,17 +224,13 @@ static void
_e_path_cache_free(E_Path *ep)
{
if (!ep->hash) return;
while (evas_hash_size(ep->hash) > 0)
evas_hash_foreach(ep->hash, _e_path_cache_free_cb, ep);
evas_hash_foreach(ep->hash, _e_path_cache_free_cb, NULL);
evas_hash_free(ep->hash);
}
static Evas_Bool
_e_path_cache_free_cb(Evas_Hash *hash, const char *key, void *data, void *fdata)
{
E_Path *ep;
ep = fdata;
free(data);
ep->hash = evas_hash_del(ep->hash, key, data);
return 0;
}