Freeing nullptr is valid.

This commit is contained in:
Bartosz Taudul 2018-12-20 17:03:09 +01:00
parent 407fb61a30
commit 8c5670489c

View File

@ -2675,6 +2675,8 @@ void Worker::ProcessMemAlloc( const QueueMemAlloc& ev )
bool Worker::ProcessMemFree( const QueueMemFree& ev )
{
if( ev.ptr == 0 ) return false;
auto it = m_data.memory.active.find( ev.ptr );
if( it == m_data.memory.active.end() )
{