forked from enlightenment/efl
ethumb: fix resource leak introduced in file path sanitization rework
This extra snaitized path assign path does not make sense and leads to a leak
in the end. We already have sanitized_path and handle that correctly.
Fixes 62a0c41fd3
CID: 1366925
This commit is contained in:
parent
c1b20aa1fb
commit
c9e761da54
|
@ -1098,7 +1098,6 @@ ethumb_thumb_path_set(Ethumb *e, const char *path, const char *key)
|
|||
else
|
||||
{
|
||||
sanitized_path = eina_file_path_sanitize(path);
|
||||
path = eina_file_path_sanitize(path);
|
||||
eina_stringshare_replace(&e->thumb_path, sanitized_path);
|
||||
eina_stringshare_replace(&e->thumb_key, key);
|
||||
free(sanitized_path);
|
||||
|
|
Loading…
Reference in New Issue