Doh! FileWrite destructor was never called.

This commit is contained in:
Bartosz Taudul 2018-03-29 01:11:54 +02:00
parent c7a5e25c87
commit 045870ad95

View File

@ -166,7 +166,7 @@ int main( int argc, char** argv )
printf( "\nFrames: %" PRIu64 "\nTime span: %s\nZones: %s\nSaving trace...", worker.GetFrameCount(), TimeToString( worker.GetLastTime() - worker.GetFrameBegin( 0 ) ), RealToString( worker.GetZoneCount(), true ) ); printf( "\nFrames: %" PRIu64 "\nTime span: %s\nZones: %s\nSaving trace...", worker.GetFrameCount(), TimeToString( worker.GetLastTime() - worker.GetFrameBegin( 0 ) ), RealToString( worker.GetZoneCount(), true ) );
fflush( stdout ); fflush( stdout );
auto f = tracy::FileWrite::Open( output ); auto f = std::unique_ptr<tracy::FileWrite>( tracy::FileWrite::Open( output ) );
if( f ) if( f )
{ {
worker.Write( *f ); worker.Write( *f );