mirror of
https://github.com/wolfpld/tracy
synced 2025-04-30 04:43:53 +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 )
|
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;
|
if( !SourceFileValid( filename, m_worker.GetCaptureTime(), *this, m_worker ) ) return;
|
||||||
m_srcHintCache.Parse( filename, m_worker, *this );
|
m_srcHintCache.Parse( filename, m_worker, *this );
|
||||||
if( m_srcHintCache.empty() ) return;
|
if( m_srcHintCache.empty() ) return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user