mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-23 22:16:16 +01:00
gcontenttype: Duplicate the string inside Mutex lock for thread-safety
https://bugzilla.gnome.org/show_bug.cgi?id=692360
This commit is contained in:
parent
c67a2ebda3
commit
7261294ec1
@ -666,8 +666,9 @@ g_content_type_guess (const gchar *filename,
|
||||
/* Got an extension match, and no conflicts. This is it. */
|
||||
if (n_name_mimetypes == 1)
|
||||
{
|
||||
gchar *s = g_strdup (name_mimetypes[0]);
|
||||
G_UNLOCK (gio_xdgmime);
|
||||
return g_strdup (name_mimetypes[0]);
|
||||
return s;
|
||||
}
|
||||
|
||||
if (data)
|
||||
|
Loading…
Reference in New Issue
Block a user