Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/wolfpld/tracy.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBartosz Taudul <wolf.pld@gmail.com>2018-03-29 02:11:54 +0300
committerBartosz Taudul <wolf.pld@gmail.com>2018-03-29 02:11:54 +0300
commit045870ad958f5fd623df29a815398fe9ea865caa (patch)
treebdc685204ad4329485895a088684b5e017389d92 /capture
parentc7a5e25c8785904f05efb78801ca1bb012ac3111 (diff)
Doh! FileWrite destructor was never called.
Diffstat (limited to 'capture')
-rw-r--r--capture/src/capture.cpp2
1 files changed, 1 insertions, 1 deletions
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>( tracy::FileWrite::Open( output ) );
if( f )
{
worker.Write( *f );