forked from enlightenment/enlightenment
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:
parent
7720039ad1
commit
1cb47b1411
|
@ -113,7 +113,7 @@ _item_fill(Evry_Item_File *file)
|
||||||
const char *mime = efreet_mime_type_get(file->path);
|
const char *mime = efreet_mime_type_get(file->path);
|
||||||
|
|
||||||
if (mime)
|
if (mime)
|
||||||
file->mime = eina_stringshare_ref(mime);
|
file->mime = eina_stringshare_add(mime);
|
||||||
else
|
else
|
||||||
file->mime = eina_stringshare_add("unknown");
|
file->mime = eina_stringshare_add("unknown");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue