Ensure SkFontMgr_fontconfig debug thread locking is initialized.
authorbungeman <bungeman@google.com>
Tue, 26 Aug 2014 20:47:20 +0000 (13:47 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 26 Aug 2014 20:47:20 +0000 (13:47 -0700)
R=mtklein@google.com

Author: bungeman@google.com

Review URL: https://codereview.chromium.org/512433002

src/ports/SkFontMgr_fontconfig.cpp

index 3486cacb51456d779f100479ba56aefd66e7a352..b54835d1be68d07e73e11d5531509d47c217b206 100644 (file)
@@ -57,7 +57,7 @@ namespace {
 SK_DECLARE_STATIC_MUTEX(gFCMutex);
 
 #ifdef SK_DEBUG
-    void *CreateThreadFcLocked() { return SkNEW(bool); }
+    void *CreateThreadFcLocked() { return SkNEW_ARGS(bool, (false)); }
     void DeleteThreadFcLocked(void* v) { SkDELETE(static_cast<bool*>(v)); }
 #   define THREAD_FC_LOCKED \
         static_cast<bool*>(SkTLS::Get(CreateThreadFcLocked, DeleteThreadFcLocked))