projects
/
platform
/
upstream
/
glib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c67a2eb
)
gcontenttype: Duplicate the string inside Mutex lock for thread-safety
author
Akira TAGOH
<akira@tagoh.org>
Thu, 24 Jan 2013 03:33:39 +0000
(12:33 +0900)
committer
Akira TAGOH
<akira@tagoh.org>
Fri, 25 Jan 2013 04:39:53 +0000
(13:39 +0900)
https://bugzilla.gnome.org/show_bug.cgi?id=692360
gio/gcontenttype.c
patch
|
blob
|
history
diff --git
a/gio/gcontenttype.c
b/gio/gcontenttype.c
index
6cc805c
..
5d49b7e
100644
(file)
--- a/
gio/gcontenttype.c
+++ b/
gio/gcontenttype.c
@@
-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)