+ for( size_t i_track = 0; i_track < tracks.size(); i_track++ )
+ {
+#define tk tracks[i_track]
+ if( tk->fmt.psz_description )
+ {
+ free( tk->fmt.psz_description );
+ }
+ if( tk->psz_codec )
+ {
+ free( tk->psz_codec );
+ }
+ if( tk->fmt.psz_language )
+ {
+ free( tk->fmt.psz_language );
+ }
+ delete tk;
+#undef tk
+ }
+
+ if( psz_writing_application )
+ {
+ free( psz_writing_application );
+ }
+ if( psz_muxing_application )
+ {
+ free( psz_muxing_application );
+ }
+ if( psz_segment_filename )
+ {
+ free( psz_segment_filename );
+ }
+ if( psz_title )
+ {
+ free( psz_title );
+ }
+ if( psz_date_utc )
+ {
+ free( psz_date_utc );
+ }
+