From cd628d8ea82cc61bb4dd57a74e2f7d63847480bb Mon Sep 17 00:00:00 2001 From: Xiaohong Bao Date: Wed, 4 Aug 2010 16:58:21 -0600 Subject: merge the fix of SNOW-793: memory leak in LLImageFormatted::appendData --- indra/llimage/llimage.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'indra') diff --git a/indra/llimage/llimage.cpp b/indra/llimage/llimage.cpp index 0fc5ca1ad6..1566389e30 100644 --- a/indra/llimage/llimage.cpp +++ b/indra/llimage/llimage.cpp @@ -1553,6 +1553,7 @@ void LLImageFormatted::appendData(U8 *data, S32 size) S32 newsize = cursize + size; reallocateData(newsize); memcpy(getData() + cursize, data, size); + delete[] data; } } } -- cgit v1.2.3