summaryrefslogtreecommitdiff
path: root/src/bin/e_path.c
diff options
context:
space:
mode:
authorCarsten Haitzler <raster@rasterman.com>2005-12-04 12:03:59 +0000
committerCarsten Haitzler <raster@rasterman.com>2005-12-04 12:03:59 +0000
commita3d5f5c28d1d06f2fa84b83f9bec484c5befe0d5 (patch)
tree7c111bc308489a73a357cf3082488322a88cea54 /src/bin/e_path.c
parent6f098b19849ff31b4f3789b8d8351f172a288d4f (diff)
a lot more use of stringshare.
SVN revision: 18823
Diffstat (limited to '')
-rw-r--r--src/bin/e_path.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/bin/e_path.c b/src/bin/e_path.c
index 462bbd0..e363c85 100644
--- a/src/bin/e_path.c
+++ b/src/bin/e_path.c
@@ -261,7 +261,7 @@ e_path_find(E_Path *ep, const char *file)
261 261
262 if (!file) return NULL; 262 if (!file) return NULL;
263 str = evas_hash_find(ep->hash, file); 263 str = evas_hash_find(ep->hash, file);
264 if (str) return strdup(str); 264 if (str) return evas_stringshare_add(str);
265 /* Look in the default dir list */ 265 /* Look in the default dir list */
266 for (l = ep->default_dir_list; l; l = l->next) 266 for (l = ep->default_dir_list; l; l = l->next)
267 { 267 {
@@ -282,7 +282,7 @@ e_path_find(E_Path *ep, const char *file)
282 _e_path_cache_free(ep); 282 _e_path_cache_free(ep);
283 ep->hash = evas_hash_add(ep->hash, file, 283 ep->hash = evas_hash_add(ep->hash, file,
284 evas_stringshare_add(buf)); 284 evas_stringshare_add(buf));
285 return strdup(buf); 285 return evas_stringshare_add(buf);
286 } 286 }
287 if (rp) free(rp); 287 if (rp) free(rp);
288 } 288 }
@@ -307,7 +307,7 @@ e_path_find(E_Path *ep, const char *file)
307 _e_path_cache_free(ep); 307 _e_path_cache_free(ep);
308 ep->hash = evas_hash_add(ep->hash, file, 308 ep->hash = evas_hash_add(ep->hash, file,
309 evas_stringshare_add(buf)); 309 evas_stringshare_add(buf));
310 return strdup(buf); 310 return evas_stringshare_add(buf);
311 } 311 }
312 if (rp) free(rp); 312 if (rp) free(rp);
313 } 313 }