mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 10:41:50 +00:00
Freeing nullptr is valid.
This commit is contained in:
parent
407fb61a30
commit
8c5670489c
@ -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() )
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user