summaryrefslogtreecommitdiff
path: root/indra/llimage
diff options
context:
space:
mode:
authorDessie Linden <dessie@lindenlab.com>2010-06-15 09:07:45 -0700
committerDessie Linden <dessie@lindenlab.com>2010-06-15 09:07:45 -0700
commit59cc637b8df9b189b2c43e2fcf588c977580f820 (patch)
treebfd5a5ec417c9581415f1fc98af6d96fbc6d1604 /indra/llimage
parentd1ecffeb8e4b02bc5d796872e61eebf84e598983 (diff)
parentb3fc9c79f559c84893dede3ce643ac0dfd1f3d65 (diff)
Merged from viewer-release
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;
}