Logo Search packages:      
Sourcecode: libgphoto2 version File versions  Download package

int gp_list_free ( CameraList list  ) 

Frees the list. It is recommended to use gp_list_unref instead.

Parameters:
list the CameraList to be freed
Returns:
a gphoto2 error code

Definition at line 178 of file gphoto2-list.c.

References CHECK_LIST, and GP_OK.

Referenced by gp_camera_init(), gp_filesystem_number(), and gp_list_unref().

{
      CHECK_LIST (list);

      /* Mark this list as having been freed. That may help us
       * prevent access to already freed lists.
       */
      list->ref_count = 0;
      
      free (list);

        return (GP_OK);
}


Generated by  Doxygen 1.6.0   Back to index