summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorXiaohong Bao <bao@lindenlab.com>2011-03-08 14:20:14 -0700
committerXiaohong Bao <bao@lindenlab.com>2011-03-08 14:20:14 -0700
commit9f765cdb1302e1aa3b06c8203c9f4851fb3e97e3 (patch)
treeb05883155110c7160c40fbc902aca9acc040efd2 /indra/newview
parentb319e255988b55121d08337f99436cc37a7797d8 (diff)
fix for STORM-1052: crash at LLVOCacheEntry::~LLVOCacheEntry() line 138
Diffstat (limited to 'indra/newview')
-rw-r--r--indra/newview/llvocache.cpp6
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;
+ }
}