[Tizen] Fix mis-implementation - hash collision case for TextureManager 85/318585/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:12:44 +0000 (11:12 +0900)
Change-Id: Ie14c0740e1e4c0bca83fb62f28a39970fb5f39ec
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
dali-toolkit/internal/texture-manager/texture-cache-manager.cpp

index 868d57da36d14c0d2ce1ef110d4b94cbcf93dcc8..75c793baafd10c132f629091ca64465a4b427cd5 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.
@@ -726,7 +726,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())
     {