From b1b415e86240dac776d109bb3488f34d16666e49 Mon Sep 17 00:00:00 2001 From: Shyotl Date: Tue, 7 Aug 2018 01:12:09 -0500 Subject: [PATCH] Actually deallocate oversized mesh loading buffer. --- indra/newview/llmeshrepository.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/indra/newview/llmeshrepository.cpp b/indra/newview/llmeshrepository.cpp index 160d2aaa6..09c80c7dc 100644 --- a/indra/newview/llmeshrepository.cpp +++ b/indra/newview/llmeshrepository.cpp @@ -2318,7 +2318,10 @@ void LLMeshHeaderResponder::completedRaw(LLChannelDescriptors const& channels, } if (data.size() > BUFF_MAX_STATIC_SIZE) + { + std::vector().swap(data); data.resize(BUFF_MAX_STATIC_SIZE); + } }