From f2ffd637167295f9c5aa7b7643a621287068cc29 Mon Sep 17 00:00:00 2001 From: Nat Goodspeed <nat@lindenlab.com> Date: Thu, 16 Nov 2017 18:34:40 -0500 Subject: [PATCH] MAINT-7977: Release the LLRenderTargets when done. A classic-C array doesn't destroy its individual elements, but a std::vector does. Use a std::vector<LLRenderTarget> for dest, so each LLRenderTarget will be destroyed. ~LLRenderTarget() calls its release() method. --- indra/newview/llglsandbox.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/indra/newview/llglsandbox.cpp b/indra/newview/llglsandbox.cpp index af0bbf9a880..31d60c3afe8 100644 --- a/indra/newview/llglsandbox.cpp +++ b/indra/newview/llglsandbox.cpp @@ -960,7 +960,7 @@ F32 gpu_benchmark() std::vector<U32> source; }; - LLRenderTarget dest[count]; + std::vector<LLRenderTarget> dest(count); TextureHolder texHolder(0, count); std::vector<F32> results; -- GitLab