From: Bowon Ryu Date: Mon, 13 Jan 2025 05:22:38 +0000 (+0900) Subject: Fix font client coverity issue X-Git-Tag: accepted/tizen/unified/20250115.005100~3^2~4^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7df9b5944c9f440b25325100b8de518e7f427a56;p=platform%2Fcore%2Fuifw%2Fdali-adaptor.git Fix font client coverity issue Remove unique_lock unlock to prevent double unlocking. Change-Id: I3a692321b8b10e2fc477075e204e3dfaadf2d9f4 Signed-off-by: Bowon Ryu --- diff --git a/dali/internal/text/text-abstraction/font-client-impl.cpp b/dali/internal/text/text-abstraction/font-client-impl.cpp index 900ee8385..886db026f 100644 --- a/dali/internal/text/text-abstraction/font-client-impl.cpp +++ b/dali/internal/text/text-abstraction/font-client-impl.cpp @@ -179,7 +179,6 @@ void FontClient::PreCacheRun(const FontFamilyList& fallbackFamilyList, const Fon std::unique_lock lock(gMutex); gPreCacheThreadReady = true; gPreCacheCond.notify_one(); - lock.unlock(); } FONT_LOG_MESSAGE(Dali::Integration::Log::INFO, "BEGIN: DALI_TEXT_PRECACHE_RUN\n"); @@ -196,7 +195,6 @@ void FontClient::PreLoadRun(const FontPathList& fontPathList, const FontPathList std::unique_lock lock(gMutex); gPreLoadThreadReady = true; gPreLoadCond.notify_one(); - lock.unlock(); } FONT_LOG_MESSAGE(Dali::Integration::Log::INFO, "BEGIN: DALI_TEXT_FONT_PRELOAD_RUN\n");