From 7dbadf4c8bc7400ac4108217eccb0fcc6c164f93 Mon Sep 17 00:00:00 2001
From: AndreyL ProductEngine <alihatskiy@productengine.com>
Date: Tue, 25 Jun 2019 03:32:23 +0300
Subject: [PATCH] Mac buildfix

---
 indra/newview/lltexturecache.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/indra/newview/lltexturecache.cpp b/indra/newview/lltexturecache.cpp
index 99696318438..cf1ee04644d 100644
--- a/indra/newview/lltexturecache.cpp
+++ b/indra/newview/lltexturecache.cpp
@@ -1747,7 +1747,8 @@ void LLTextureCache::purgeTexturesLazy(F32 time_limit_sec)
 			id_map_t::iterator iter_header = mHeaderIDMap.find(entry.mID);
 			if (iter_header != mHeaderIDMap.end() && iter_header->second == idx)
 			{
-				removeEntry(idx, entry, getTextureFileName(entry.mID));
+				std::string tex_filename = getTextureFileName(entry.mID);
+				removeEntry(idx, entry, tex_filename);
 				writeEntryToHeaderImmediately(idx, entry);
 			}
 		}
-- 
GitLab