mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-27 00:04:35 +00:00
Fix switch for memory free.
Because of the layout difference between messageFat and messageColorFat, this was referencing the text member 3-bytes offset from where it should have been.
This commit is contained in:
parent
9c3dac3ed2
commit
064d264445
@ -1748,10 +1748,13 @@ static void FreeAssociatedMemory( const QueueItem& item )
|
|||||||
ptr = MemRead<uint64_t>( &item.zoneTextFat.text );
|
ptr = MemRead<uint64_t>( &item.zoneTextFat.text );
|
||||||
tracy_free( (void*)ptr );
|
tracy_free( (void*)ptr );
|
||||||
break;
|
break;
|
||||||
case QueueType::Message:
|
|
||||||
case QueueType::MessageColor:
|
case QueueType::MessageColor:
|
||||||
case QueueType::MessageCallstack:
|
|
||||||
case QueueType::MessageColorCallstack:
|
case QueueType::MessageColorCallstack:
|
||||||
|
ptr = MemRead<uint64_t>( &item.messageColorFat.text );
|
||||||
|
tracy_free( (void*)ptr );
|
||||||
|
break;
|
||||||
|
case QueueType::Message:
|
||||||
|
case QueueType::MessageCallstack:
|
||||||
#ifndef TRACY_ON_DEMAND
|
#ifndef TRACY_ON_DEMAND
|
||||||
case QueueType::MessageAppInfo:
|
case QueueType::MessageAppInfo:
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user