MCPcopy Create free account
hub / github.com/HandBrake/HandBrake / hb_batch_close

Function hb_batch_close

libhb/batch.c:253–267  ·  view source on GitHub ↗

* hb_batch_close *********************************************************************** * Closes and frees everything **********************************************************************/

Source from the content-addressed store, hash-verified

251 * Closes and frees everything
252 **********************************************************************/
253void hb_batch_close( hb_batch_t ** _d )
254{
255 hb_batch_t * d = *_d;
256 char * filename;
257
258 while ( ( filename = hb_list_item( d->list_file, 0 ) ) )
259 {
260 hb_list_rem( d->list_file, filename );
261 free( filename );
262 }
263 hb_list_close( &d->list_file );
264 free( d->path );
265 free( d );
266 *_d = NULL;
267}
268

Callers 1

ScanFuncFunction · 0.85

Calls 3

hb_list_itemFunction · 0.85
hb_list_remFunction · 0.85
hb_list_closeFunction · 0.85

Tested by

no test coverage detected