diff options
author | Dave SIMmONs <simon@lindenlab.com> | 2011-03-21 10:24:07 -0700 |
---|---|---|
committer | Dave SIMmONs <simon@lindenlab.com> | 2011-03-21 10:24:07 -0700 |
commit | 31e16be0daa10e6d66b133c308130524a7a0d881 (patch) | |
tree | c44a007bc039e07e8ff938898d56a0534347750b /indra/newview/llvocache.cpp | |
parent | 15404a3c5d50f5f106f5bc443d16e172c54e3e0f (diff) | |
parent | df63c6931e81c034887611711095e3134b9a7318 (diff) |
Merge latest from lindenlab/viewer-development
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; + } } |