Skip to content
Snippets Groups Projects
Commit d4c0c81c authored by Xiaohong Bao's avatar Xiaohong Bao
Browse files

fix for STORM-1052: crash at LLVOCacheEntry::~LLVOCacheEntry() line 138

parent 913f927f
No related branches found
No related tags found
No related merge requests found
...@@ -71,6 +71,7 @@ LLVOCacheEntry::LLVOCacheEntry() ...@@ -71,6 +71,7 @@ LLVOCacheEntry::LLVOCacheEntry()
} }
LLVOCacheEntry::LLVOCacheEntry(LLAPRFile* apr_file) LLVOCacheEntry::LLVOCacheEntry(LLAPRFile* apr_file)
: mBuffer(NULL)
{ {
S32 size = -1; S32 size = -1;
BOOL success; BOOL success;
...@@ -135,7 +136,10 @@ LLVOCacheEntry::LLVOCacheEntry(LLAPRFile* apr_file) ...@@ -135,7 +136,10 @@ LLVOCacheEntry::LLVOCacheEntry(LLAPRFile* apr_file)
LLVOCacheEntry::~LLVOCacheEntry() LLVOCacheEntry::~LLVOCacheEntry()
{ {
delete [] mBuffer; if(mBuffer)
{
delete[] mBuffer;
}
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment