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:
AWoloszyn 2020-12-07 22:07:12 -05:00
parent 9c3dac3ed2
commit 064d264445

View File

@ -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