summaryrefslogtreecommitdiff
path: root/indra/llimage/llimagepng.cpp
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
commitbe72a10a89f98a5c7c372ecee3d839be2031b80a (patch)
treebfd5a5ec417c9581415f1fc98af6d96fbc6d1604 /indra/llimage/llimagepng.cpp
parent0a6761820e49d139c8e5068a82b32df84db5b611 (diff)
parentb3fc9c79f559c84893dede3ce643ac0dfd1f3d65 (diff)
Merged from viewer-release
Diffstat (limited to 'indra/llimage/llimagepng.cpp')
-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;
}