CID 1498 (and others) : when deleting a NULL pointer, operator delete is actually called. So, it must not dereference the
given pointer without checking first. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38147 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
f23b9d8a72
commit
6e24fc677f
@ -255,6 +255,8 @@ void
|
||||
BMessage::operator delete(void *pointer, size_t size)
|
||||
{
|
||||
DEBUG_FUNCTION_ENTER2;
|
||||
if (pointer == NULL)
|
||||
return;
|
||||
sMsgCache->Save(pointer, size);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user