diff options
author | Xiaohong Bao <bao@lindenlab.com> | 2011-03-08 14:20:14 -0700 |
---|---|---|
committer | Xiaohong Bao <bao@lindenlab.com> | 2011-03-08 14:20:14 -0700 |
commit | d4c0c81c725c749d734935dbb7fa3af05bf8e02c (patch) | |
tree | 27f7423f60941aa9ee16b5b82b9f001f4fc70052 | |
parent | 913f927fc8e7b10588bcda7356ec33798ad82452 (diff) |
fix for STORM-1052: crash at LLVOCacheEntry::~LLVOCacheEntry() line 138
-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; + } } |