Esempio n. 1
0
static void _flickr_api_free(_flickr_api_context_t *ctx)
{

    g_free(ctx->album_title);
    g_free(ctx->album_summary);

    if(ctx->current_album != NULL) flickcurl_free_photoset(ctx->current_album);

    flickcurl_free(ctx->fc);

    g_free(ctx);
}
Esempio n. 2
0
/**
 * flickcurl_free_photosets:
 * @photosets_object: photoset object array
 *
 * Destructor for array of photoset object
 */
void
flickcurl_free_photosets(flickcurl_photoset **photosets_object)
{
  int i;
  
  FLICKCURL_ASSERT_OBJECT_POINTER_RETURN(photosets_object, flickcurl_photoset_array);

  for(i = 0; photosets_object[i]; i++)
    flickcurl_free_photoset(photosets_object[i]);
  
  free(photosets_object);
}