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.

list the CameraList to be freed
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(), gp_filesystem_remove_dir(), 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