diff --git a/indra/newview/llmaterialmgr.cpp b/indra/newview/llmaterialmgr.cpp
index 9ac560c217c0bdf443132d0ecb84c01184367d4c..f996557c17a01cb15e5593094b32befd0e00da58 100755
--- a/indra/newview/llmaterialmgr.cpp
+++ b/indra/newview/llmaterialmgr.cpp
@@ -599,7 +599,7 @@ void LLMaterialMgr::processGetQueue()
         // 
         get_queue_t::iterator itRegionQueue = loopRegionQueue++;
 
-        const LLUUID& region_id = itRegionQueue->first;
+        LLUUID region_id = itRegionQueue->first;
         if (isGetAllPending(region_id))
         {
             continue;
@@ -647,6 +647,7 @@ void LLMaterialMgr::processGetQueue()
 		if (materials.empty())
 		{
 			mGetQueue.erase(itRegionQueue);
+            // $TODO*: We may be able to issue a continue here.  Research.
 		}
 		
 		std::string materialString = zip_llsd(materialsData);