projects
/
platform
/
upstream
/
fontconfig.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Make FcGetDefaultLang and FcGetDefaultLangs thread-safe
[platform/upstream/fontconfig.git]
/
src
/
fcstr.c
diff --git
a/src/fcstr.c
b/src/fcstr.c
index
e72be5e
..
f278022
100644
(file)
--- a/
src/fcstr.c
+++ b/
src/fcstr.c
@@
-1234,6
+1234,10
@@
FcStrSetDestroy (FcStrSet *set)
{
int i;
+ /* We rely on this in FcGetDefaultLangs for caching. */
+ if (FcRefIsConst (&set->ref))
+ return;
+
if (FcRefDec (&set->ref) != 1)
return;