enventor - use eina_stringshare_replace instead of eina_stringshare_add

+ del.
This commit is contained in:
Daniel Juyung Seo 2013-12-13 02:30:44 +09:00
parent 234e37c519
commit 27cb2ab4e7
1 changed files with 4 additions and 6 deletions

View File

@ -738,9 +738,8 @@ fileselector_save_done_cb(void *data, Evas_Object *obj, void *event_info)
menu_data *md = data;
const char *selected = event_info;
if (md->last_accessed_path)
eina_stringshare_del(md->last_accessed_path);
md->last_accessed_path = eina_stringshare_add(elm_fileselector_path_get(obj));
eina_stringshare_replace(&(md->last_accessed_path),
elm_fileselector_path_get(obj));
if (!selected)
{
@ -806,9 +805,8 @@ fileselector_load_done_cb(void *data, Evas_Object *obj, void *event_info)
menu_data *md = data;
const char *selected = event_info;
if (md->last_accessed_path)
eina_stringshare_del(md->last_accessed_path);
md->last_accessed_path = eina_stringshare_add(elm_fileselector_path_get(obj));
eina_stringshare_replace(&(md->last_accessed_path),
elm_fileselector_path_get(obj));
if (!selected)
{