diff options
author | Tofu Buzzard <no-email> | 2011-03-10 12:13:13 -0800 |
---|---|---|
committer | Tofu Buzzard <no-email> | 2011-03-10 12:13:13 -0800 |
commit | 3c37aa1c19599a02d0652d78d46d55214085a832 (patch) | |
tree | b7ff0c23ad88c6e5ed17d9cb809908323dbc6265 /indra/newview/llvocache.cpp | |
parent | 5c6f86e158b547a0a686a3ab9d01d55b3787e48c (diff) | |
parent | 250cc9c956021ce2cb8b56bae30cd01184807b7b (diff) |
merge
Diffstat (limited to 'indra/newview/llvocache.cpp')
-rw-r--r-- | indra/newview/llvocache.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/indra/newview/llvocache.cpp b/indra/newview/llvocache.cpp index add1db9099..1f9be20c75 100644 --- a/indra/newview/llvocache.cpp +++ b/indra/newview/llvocache.cpp @@ -71,6 +71,7 @@ LLVOCacheEntry::LLVOCacheEntry() }
LLVOCacheEntry::LLVOCacheEntry(LLAPRFile* apr_file)
+ : mBuffer(NULL)
{
S32 size = -1;
BOOL success;
@@ -135,7 +136,10 @@ LLVOCacheEntry::LLVOCacheEntry(LLAPRFile* apr_file) LLVOCacheEntry::~LLVOCacheEntry()
{
- delete [] mBuffer;
+ if(mBuffer)
+ {
+ delete[] mBuffer;
+ }
}
|