Fix mis-implementation - hash collision case for TextureManager 84/318584/1
authorEunki, Hong <eunkiki.hong@samsung.com>
Tue, 21 Jan 2025 02:09:59 +0000 (11:09 +0900)
committerEunki, Hong <eunkiki.hong@samsung.com>
Tue, 21 Jan 2025 02:09:59 +0000 (11:09 +0900)
Change-Id: Ie14c0740e1e4c0bca83fb62f28a39970fb5f39ec
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
dali-toolkit/internal/texture-manager/texture-cache-manager.cpp

index 89814cbc98368475e8865f2fc17ef50d33b36f35..9b916f63484616c7e1e8eee68aa988912d341331 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2024 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2025 Samsung Electronics Co., Ltd.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -733,7 +733,7 @@ void TextureCacheManager::RemoveHashId(const TextureCacheManager::TextureHash te
   auto hashIterator = mTextureHashContainer.find(textureHash);
   if(hashIterator != mTextureHashContainer.end())
   {
-    auto        hashIdList     = hashIterator->second;
+    auto&       hashIdList     = hashIterator->second;
     const auto& hashIdIterator = std::find(hashIdList.cbegin(), hashIdList.cend(), textureId);
     if(hashIdIterator != hashIdList.cend())
     {