mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 10:41:50 +00:00
Check for file name pointer validity.
This commit is contained in:
parent
ff6ecef5f3
commit
5ebffe388a
@ -17847,6 +17847,7 @@ const char* View::SourceSubstitution( const char* srcFile ) const
|
||||
|
||||
void View::DrawSourceTooltip( const char* filename, uint32_t srcline, int before, int after, bool separateTooltip )
|
||||
{
|
||||
if( !filename ) return;
|
||||
if( !SourceFileValid( filename, m_worker.GetCaptureTime(), *this, m_worker ) ) return;
|
||||
m_srcHintCache.Parse( filename, m_worker, *this );
|
||||
if( m_srcHintCache.empty() ) return;
|
||||
|
Loading…
Reference in New Issue
Block a user