Actually deallocate oversized mesh loading buffer.

This commit is contained in:
Shyotl
2018-08-07 01:12:09 -05:00
parent b5f0355015
commit b1b415e862

View File

@@ -2318,7 +2318,10 @@ void LLMeshHeaderResponder::completedRaw(LLChannelDescriptors const& channels,
}
if (data.size() > BUFF_MAX_STATIC_SIZE)
{
std::vector<U8>().swap(data);
data.resize(BUFF_MAX_STATIC_SIZE);
}
}