mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 10:41:50 +00:00
CheckString() doesn't check if string query is still pending.
This commit is contained in:
parent
ee22cf3b0c
commit
dc0f2db3f2
@ -3606,8 +3606,7 @@ void Worker::AddSourceLocation( const QueueSourceLocation& srcloc )
|
|||||||
if( CheckString( srcloc.file ) )
|
if( CheckString( srcloc.file ) )
|
||||||
{
|
{
|
||||||
StringRef ref( StringRef::Ptr, srcloc.file );
|
StringRef ref( StringRef::Ptr, srcloc.file );
|
||||||
assert( m_pendingFileStrings.find( ref ) == m_pendingFileStrings.end() );
|
if( srcloc.file != 0 && m_checkedFileStrings.find( ref ) == m_checkedFileStrings.end() && m_pendingFileStrings.find( ref ) == m_pendingFileStrings.end() )
|
||||||
if( srcloc.file != 0 && m_checkedFileStrings.find( ref ) == m_checkedFileStrings.end() )
|
|
||||||
{
|
{
|
||||||
CacheSource( ref );
|
CacheSource( ref );
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user