From f2ffd637167295f9c5aa7b7643a621287068cc29 Mon Sep 17 00:00:00 2001 From: Nat Goodspeed Date: Thu, 16 Nov 2017 18:34:40 -0500 Subject: 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 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(-) (limited to 'indra') diff --git a/indra/newview/llglsandbox.cpp b/indra/newview/llglsandbox.cpp index af0bbf9a88..31d60c3afe 100644 --- a/indra/newview/llglsandbox.cpp +++ b/indra/newview/llglsandbox.cpp @@ -960,7 +960,7 @@ F32 gpu_benchmark() std::vector source; }; - LLRenderTarget dest[count]; + std::vector dest(count); TextureHolder texHolder(0, count); std::vector results; -- cgit v1.2.3