mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-27 00:04:35 +00:00
Merge pull request #234 from avoroshilov/fix-crash-conversion
Fix a crash in Worker c-tor when converting certain JSON files
This commit is contained in:
commit
7fbf796ecb
@ -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…
Reference in New Issue
Block a user