Fix (harmless) uninitialized memory usage in BVH binning.

Fix unneeded warnings with c++ guardedalloc, delete NULL is valid.
This commit is contained in:
Brecht Van Lommel
2012-05-04 16:38:11 +00:00
parent d710638c47
commit 0c318c4a47
2 changed files with 4 additions and 1 deletions

View File

@@ -41,5 +41,7 @@ void* operator new (size_t size, const char *str)
void operator delete (void *p)
{
MEM_freeN(p);
/* delete NULL is valid in c++ */
if(p)
MEM_freeN(p);
}