diff options
author | callum <none@none> | 2011-03-09 15:34:43 -0800 |
---|---|---|
committer | callum <none@none> | 2011-03-09 15:34:43 -0800 |
commit | aac70bccada903098bd5a5074d7c4e347ddbef03 (patch) | |
tree | 66d7626379646f2eb385566e5d5098e95ebb3cd2 /indra/newview/llvocache.cpp | |
parent | 90c824d10dbf4468dfdd9ffebf7456f81964391a (diff) | |
parent | 0c02401498521f87d38778df0e795960aa5445e1 (diff) |
Merge with tip of http://hg.secondlife.com/viewer-development (rev 14798)
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 a933500706..b888a263d0 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; + } } |