* hb_list_close ********************************************************************** * Free memory allocated by hb_list_init. Does NOT free contents of * items still in the list. *********************************************************************/
| 4348 | * items still in the list. |
| 4349 | *********************************************************************/ |
| 4350 | void hb_list_close( hb_list_t ** _l ) |
| 4351 | { |
| 4352 | hb_list_t * l = *_l; |
| 4353 | |
| 4354 | if (l == NULL) |
| 4355 | { |
| 4356 | return; |
| 4357 | } |
| 4358 | |
| 4359 | free( l->items ); |
| 4360 | free( l ); |
| 4361 | |
| 4362 | *_l = NULL; |
| 4363 | } |
| 4364 | |
| 4365 | /********************************************************************** |
| 4366 | * hb_string_list_copy |
no outgoing calls