aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2014-04-16 22:10:52 +0000
committerGravatar commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2014-04-16 22:10:52 +0000
commit6493ae24cee24285205b6782e7cad5189c937b38 (patch)
treea37889ec13de5e46f6c9fac4f8d083c09ccd2580
parent0d317d303aeb200dd4ef9e42bf16b538ac42e717 (diff)
Don't unset gFCSafeToUse when it's still safe to use.
BUG=skia: R=bungeman@google.com, mtklein@google.com Author: mtklein@chromium.org Review URL: https://codereview.chromium.org/240513003 git-svn-id: http://skia.googlecode.com/svn/trunk@14232 2bbb7eff-a529-9590-31e7-b0007b416f81
-rw-r--r--src/fonts/SkFontMgr_fontconfig.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fonts/SkFontMgr_fontconfig.cpp b/src/fonts/SkFontMgr_fontconfig.cpp
index 226da963d7..2ffe8e3e86 100644
--- a/src/fonts/SkFontMgr_fontconfig.cpp
+++ b/src/fonts/SkFontMgr_fontconfig.cpp
@@ -38,8 +38,8 @@ struct FCLocker {
}
~FCLocker() {
- gFCSafeToUse = false;
if (fUnlock) {
+ gFCSafeToUse = false;
gFCMutex.release();
}
}