diff --git a/Timeline/Engine/Record_DS.C b/Timeline/Engine/Record_DS.C index ff37d4e..8fff82f 100644 --- a/Timeline/Engine/Record_DS.C +++ b/Timeline/Engine/Record_DS.C @@ -198,12 +198,15 @@ Record_DS::disk_thread ( void ) DMESSAGE( "finalzing capture" ); - /* now finalize the recording */ - track()->finalize( _capture, _stop_frame ); + Track::Capture *c = _capture; - delete _capture; _capture = NULL; + /* now finalize the recording */ + track()->finalize( c, _stop_frame ); + + delete c; + _terminate = false; DMESSAGE( "capture thread gone" ); }