summaryrefslogtreecommitdiff
path: root/src/bin/e_path.c
diff options
context:
space:
mode:
authorsebastid <sebastid>2005-02-16 11:31:21 +0000
committersebastid <sebastid@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>2005-02-16 11:31:21 +0000
commit9718ef9fa73197fade8b227575ca0ee4e27b777a (patch)
treeb20ebb1f6e603fa9ce635be24298eaac46fea0e1 /src/bin/e_path.c
parent6b50c58bfa9a25af8ed3ef89acb8721e02623764 (diff)
Cleanup.
SVN revision: 13396
Diffstat (limited to 'src/bin/e_path.c')
-rw-r--r--src/bin/e_path.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/bin/e_path.c b/src/bin/e_path.c
index b46783f..71209ec 100644
--- a/src/bin/e_path.c
+++ b/src/bin/e_path.c
@@ -224,17 +224,13 @@ static void
224_e_path_cache_free(E_Path *ep) 224_e_path_cache_free(E_Path *ep)
225{ 225{
226 if (!ep->hash) return; 226 if (!ep->hash) return;
227 while (evas_hash_size(ep->hash) > 0) 227 evas_hash_foreach(ep->hash, _e_path_cache_free_cb, NULL);
228 evas_hash_foreach(ep->hash, _e_path_cache_free_cb, ep); 228 evas_hash_free(ep->hash);
229} 229}
230 230
231static Evas_Bool 231static Evas_Bool
232_e_path_cache_free_cb(Evas_Hash *hash, const char *key, void *data, void *fdata) 232_e_path_cache_free_cb(Evas_Hash *hash, const char *key, void *data, void *fdata)
233{ 233{
234 E_Path *ep;
235
236 ep = fdata;
237 free(data); 234 free(data);
238 ep->hash = evas_hash_del(ep->hash, key, data);
239 return 0; 235 return 0;
240} 236}