Logo Search packages:      
Sourcecode: vcdimager version File versions

bool vcdinfo_close ( vcdinfo_obj_t *  obj  ) 

Dispose of any resources associated with vcdinfo structure "obj". Call this when "obj" it isn't needed anymore.

True is returned is everything went okay, and false if not.

Dispose of any resources associated with vcdinfo structure "obj". Call this when "obj" it isn't needed anymore.

True is returned is everything went okay, and false if not.

Definition at line 2016 of file info.c.

References vcdinfo_close().

Referenced by vcdinfo_close().

{
  if (obj != NULL) {
    if (obj->offset_list != NULL) 
      _cdio_list_free(obj->offset_list, true);
    if (obj->offset_x_list != NULL) 
      _cdio_list_free(obj->offset_x_list, true);
    free(obj->seg_sizes);
    free(obj->lot);
    free(obj->lot_x);
    if (obj->psd_x) free(obj->psd_x);
    if (obj->psd)   free(obj->psd);
    if (obj->scandata_buf) free(obj->scandata_buf);
    free(obj->tracks_buf);
    free(obj->search_buf);
    free(obj->source_name);

    if (obj->img != NULL) cdio_destroy (obj->img);
    _vcdinfo_zero(obj);
  }
  
  free(obj);
  return(true);
}


Generated by  Doxygen 1.6.0   Back to index