use stringshare_add() for evry files plugin mime types

the return of this function is not guaranteed to be stringshared
This commit is contained in:
Mike Blumenkrantz 2016-08-26 10:17:05 -04:00
parent 7720039ad1
commit 1cb47b1411
1 changed files with 1 additions and 1 deletions

View File

@ -113,7 +113,7 @@ _item_fill(Evry_Item_File *file)
const char *mime = efreet_mime_type_get(file->path);
if (mime)
file->mime = eina_stringshare_ref(mime);
file->mime = eina_stringshare_add(mime);
else
file->mime = eina_stringshare_add("unknown");
}