elc_file_selector_button: free allocated path name

Summary:
Currently path is strdup() when getting real path, but it is not freed
in some cases.

@fix

Reviewers: seoz, Hermet, woohyun, cedric

Reviewed By: cedric

Differential Revision: https://phab.enlightenment.org/D3194

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
This commit is contained in:
Sung-Taek Hong 2015-10-19 11:43:13 -07:00 committed by Cedric BAIL
parent 5bfa138bcc
commit 1f03888c27
1 changed files with 1 additions and 0 deletions

View File

@ -463,6 +463,7 @@ _elm_fileselector_button_elm_interface_fileselector_selected_set(Eo *obj EINA_UN
free(path);
return EINA_FALSE;
}
free(path);
}
eina_stringshare_replace(&sd->fsd.selection, _path);