mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08:00
Fix a crash in Worker c-tor when converting certain JSON files
This commit is contained in:
parent
fde62b4e6e
commit
d4d77006ac
@ -371,6 +371,8 @@ Worker::Worker( const char* name, const char* program, const std::vector<ImportE
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
auto td = NoticeThread( v.tid );
|
auto td = NoticeThread( v.tid );
|
||||||
|
if (td->zoneIdStack.empty())
|
||||||
|
continue;
|
||||||
td->zoneIdStack.pop_back();
|
td->zoneIdStack.pop_back();
|
||||||
auto& stack = td->stack;
|
auto& stack = td->stack;
|
||||||
auto zone = stack.back_and_pop();
|
auto zone = stack.back_and_pop();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user