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

index fc77c6f042a21e0dc62320c83403bb46da80584c..ced1d79c0686360b1fb0dadb141148f77a71b89b 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2023 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.
@@ -712,7 +712,7 @@ void TextureCacheManager::RemoveHashId(const TextureCacheManager::TextureHash& t
   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())
     {