diff options
author | leyla <leyla@leyla.com> | 2011-03-14 11:28:13 -0700 |
---|---|---|
committer | leyla <leyla@leyla.com> | 2011-03-14 11:28:13 -0700 |
commit | c762beed267115b7670e01219ccff4fc64bdca4c (patch) | |
tree | 8ee42a8defd3bae58759a9dd3517385d830c52b8 /indra/newview/llvocache.cpp | |
parent | bc2aca863f5d27f551e48a2de8f879360a3a96ab (diff) | |
parent | 405a748746c8ea040fe0efeda54e58f378289795 (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 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; + } } |