From 2789a8f0475d382bc7035d2a4043931c72139bb9 Mon Sep 17 00:00:00 2001 From: McCabe Maxsted Date: Wed, 23 Jun 2010 22:10:59 -0700 Subject: Fixed memory leak in llimage/llimagepng.cpp (backported from SL 2.0) --- linden/indra/llimage/llimagepng.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'linden') diff --git a/linden/indra/llimage/llimagepng.cpp b/linden/indra/llimage/llimagepng.cpp index b5de104..387e2fd 100644 --- a/linden/indra/llimage/llimagepng.cpp +++ b/linden/indra/llimage/llimagepng.cpp @@ -135,6 +135,7 @@ BOOL LLImagePNG::encode(const LLImageRaw* raw_image, F32 encode_time) if (! pngWrapper.writePng(raw_image, mTmpWriteBuffer)) { setLastError(pngWrapper.getErrorMessage()); + delete[] mTmpWriteBuffer; return FALSE; } -- cgit v1.1