enventor - use eina_stringshare_replace instead of eina_stringshare_add
+ del.
This commit is contained in:
parent
234e37c519
commit
27cb2ab4e7
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue