From 045870ad958f5fd623df29a815398fe9ea865caa Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Thu, 29 Mar 2018 01:11:54 +0200 Subject: [PATCH] Doh! FileWrite destructor was never called. --- capture/src/capture.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/capture/src/capture.cpp b/capture/src/capture.cpp index eb6d8c7e..17e673ad 100644 --- a/capture/src/capture.cpp +++ b/capture/src/capture.cpp @@ -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 ) ); fflush( stdout ); - auto f = tracy::FileWrite::Open( output ); + auto f = std::unique_ptr( tracy::FileWrite::Open( output ) ); if( f ) { worker.Write( *f );