* hb_batch_close *********************************************************************** * Closes and frees everything **********************************************************************/
| 251 | * Closes and frees everything |
| 252 | **********************************************************************/ |
| 253 | void 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 |
no test coverage detected