summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@osg.samsung.com>2016-08-26 10:17:05 -0400
committerMike Blumenkrantz <zmike@osg.samsung.com>2016-08-26 10:17:05 -0400
commit1cb47b14111defa86e8111aa6d3db84241bb40e0 (patch)
tree889a23de2ef5b92fd141a9ff035ded5cb40a0feb
parent7720039ad169b87e58c9be48b9e3a69e8d57e0d5 (diff)
use stringshare_add() for evry files plugin mime types
the return of this function is not guaranteed to be stringshared
-rw-r--r--src/modules/everything/evry_plug_files.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/everything/evry_plug_files.c b/src/modules/everything/evry_plug_files.c
index f2e0f6ec2..fb045c19f 100644
--- a/src/modules/everything/evry_plug_files.c
+++ b/src/modules/everything/evry_plug_files.c
@@ -113,7 +113,7 @@ _item_fill(Evry_Item_File *file)
113 const char *mime = efreet_mime_type_get(file->path); 113 const char *mime = efreet_mime_type_get(file->path);
114 114
115 if (mime) 115 if (mime)
116 file->mime = eina_stringshare_ref(mime); 116 file->mime = eina_stringshare_add(mime);
117 else 117 else
118 file->mime = eina_stringshare_add("unknown"); 118 file->mime = eina_stringshare_add("unknown");
119 } 119 }