diff options
author | McCabe Maxsted | 2010-08-07 02:02:17 -0700 |
---|---|---|
committer | McCabe Maxsted | 2010-08-07 06:26:19 -0700 |
commit | 07571005d5fe0a438526bc299fca20e31832acde (patch) | |
tree | cf80372e5e4b70d1f0bb9711b1db94e41b2412da /linden/indra/llimage | |
parent | Applied patch by Robin Cornelius for SNOW-784: Textures remain blurry with ht... (diff) | |
download | meta-impy-07571005d5fe0a438526bc299fca20e31832acde.zip meta-impy-07571005d5fe0a438526bc299fca20e31832acde.tar.gz meta-impy-07571005d5fe0a438526bc299fca20e31832acde.tar.bz2 meta-impy-07571005d5fe0a438526bc299fca20e31832acde.tar.xz |
Applied patch by Thickbrick Sleaford for SNOW-793: Memory leak in LLImageFormatted::appendData
Diffstat (limited to 'linden/indra/llimage')
-rw-r--r-- | linden/indra/llimage/llimage.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
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) | |||
1547 | S32 newsize = cursize + size; | 1547 | S32 newsize = cursize + size; |
1548 | reallocateData(newsize); | 1548 | reallocateData(newsize); |
1549 | memcpy(getData() + cursize, data, size); | 1549 | memcpy(getData() + cursize, data, size); |
1550 | delete[] data; | ||
1550 | } | 1551 | } |
1551 | } | 1552 | } |
1552 | } | 1553 | } |