diff options
author | McCabe Maxsted | 2010-06-23 22:10:59 -0700 |
---|---|---|
committer | Jacek Antonelli | 2010-06-26 19:01:37 -0500 |
commit | 2789a8f0475d382bc7035d2a4043931c72139bb9 (patch) | |
tree | 4f4808f0c78ff9462421cc7073fd5b79c5f689d4 /linden/indra/llimage/llimagepng.cpp | |
parent | Fixed memory leak in llmessage/llhttpclient.cpp (backported from SL 2.0) (diff) | |
download | meta-impy-2789a8f0475d382bc7035d2a4043931c72139bb9.zip meta-impy-2789a8f0475d382bc7035d2a4043931c72139bb9.tar.gz meta-impy-2789a8f0475d382bc7035d2a4043931c72139bb9.tar.bz2 meta-impy-2789a8f0475d382bc7035d2a4043931c72139bb9.tar.xz |
Fixed memory leak in llimage/llimagepng.cpp (backported from SL 2.0)
Diffstat (limited to 'linden/indra/llimage/llimagepng.cpp')
-rw-r--r-- | linden/indra/llimage/llimagepng.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
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) | |||
135 | if (! pngWrapper.writePng(raw_image, mTmpWriteBuffer)) | 135 | if (! pngWrapper.writePng(raw_image, mTmpWriteBuffer)) |
136 | { | 136 | { |
137 | setLastError(pngWrapper.getErrorMessage()); | 137 | setLastError(pngWrapper.getErrorMessage()); |
138 | delete[] mTmpWriteBuffer; | ||
138 | return FALSE; | 139 | return FALSE; |
139 | } | 140 | } |
140 | 141 | ||