From 07571005d5fe0a438526bc299fca20e31832acde Mon Sep 17 00:00:00 2001 From: McCabe Maxsted Date: Sat, 7 Aug 2010 02:02:17 -0700 Subject: Applied patch by Thickbrick Sleaford for SNOW-793: Memory leak in LLImageFormatted::appendData --- linden/indra/llimage/llimage.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'linden/indra/llimage') diff --git a/linden/indra/llimage/llimage.cpp b/linden/indra/llimage/llimage.cpp index 0baa005..776c481 100644 --- a/linden/indra/llimage/llimage.cpp +++ b/linden/indra/llimage/llimage.cpp @@ -1547,6 +1547,7 @@ void LLImageFormatted::appendData(U8 *data, S32 size) S32 newsize = cursize + size; reallocateData(newsize); memcpy(getData() + cursize, data, size); + delete[] data; } } } -- cgit v1.1