Fix font client coverity issue 80/318080/1
authorBowon Ryu <bowon.ryu@samsung.com>
Mon, 13 Jan 2025 05:22:38 +0000 (14:22 +0900)
committerBowon Ryu <bowon.ryu@samsung.com>
Mon, 13 Jan 2025 05:22:38 +0000 (14:22 +0900)
Remove unique_lock unlock to prevent double unlocking.

Change-Id: I3a692321b8b10e2fc477075e204e3dfaadf2d9f4
Signed-off-by: Bowon Ryu <bowon.ryu@samsung.com>
dali/internal/text/text-abstraction/font-client-impl.cpp

index 900ee8385b624ae1a1ec7ef57524bdcd9418d623..886db026f172e4b8552f80d3c43720818843a833 100644 (file)
@@ -179,7 +179,6 @@ void FontClient::PreCacheRun(const FontFamilyList& fallbackFamilyList, const Fon
     std::unique_lock<std::mutex> 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<std::mutex> lock(gMutex);
     gPreLoadThreadReady = true;
     gPreLoadCond.notify_one();
-    lock.unlock();
   }
 
   FONT_LOG_MESSAGE(Dali::Integration::Log::INFO, "BEGIN: DALI_TEXT_FONT_PRELOAD_RUN\n");