mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 10:41:50 +00:00
Merge pull request #201 from nosferalatu/dont_early_out_in_memfree_when_ptr_is_zero
Change ev.ptr nullptr early-out to properly handle nullptrs
This commit is contained in:
commit
4a1142fddf
@ -5602,11 +5602,11 @@ MemEvent* Worker::ProcessMemFreeImpl( uint64_t memname, MemData& memdata, const
|
||||
const auto refTime = m_refTimeSerial + ev.time;
|
||||
m_refTimeSerial = refTime;
|
||||
|
||||
if( ev.ptr == 0 ) return nullptr;
|
||||
|
||||
auto it = memdata.active.find( ev.ptr );
|
||||
if( it == memdata.active.end() )
|
||||
{
|
||||
if( ev.ptr == 0 ) return nullptr;
|
||||
|
||||
if( !m_ignoreMemFreeFaults )
|
||||
{
|
||||
CheckThreadString( ev.thread );
|
||||
|
Loading…
Reference in New Issue
Block a user