summaryrefslogtreecommitdiff
path: root/indra/llimage
diff options
context:
space:
mode:
authorRichard Nelson <none@none>2010-06-14 15:39:00 -0700
committerRichard Nelson <none@none>2010-06-14 15:39:00 -0700
commit7df20f1315d7fe9686abf3a2dc486613a9e51a83 (patch)
tree6a21b0578c0d8c4e66c2d6bd29ddcbe93da77f95 /indra/llimage
parente97cef4de92f446bb51b4137ce64605f74d7f48e (diff)
parentbaf9b3cb078c04b019fccc4ae8a54db05b14bdef (diff)
merge
Diffstat (limited to 'indra/llimage')
-rw-r--r--indra/llimage/llimagepng.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/indra/llimage/llimagepng.cpp b/indra/llimage/llimagepng.cpp
index b5de104e61..a6ab246a2c 100644
--- a/indra/llimage/llimagepng.cpp
+++ b/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;
}