cats = g_list_next(cats);
}
- if (g_list_length(cat_list) > 0) {
+ //if (g_list_length(cat_list) > 0) {
+ int length = 0;
+ maps_item_list_get_length(cat_list, &length);
+ if (length > 0) {
maps_place_set_categories(place, cat_list);
maps_item_list_remove_all(cat_list, maps_place_category_destroy);
}
/*}*/
/*if (g_list_length(cat_list) > 0) {*/
+ /*
+ int length = 0;
+ maps_item_list_get_length(cat_list, &length);
+ if (length > 0) {
+ */
/*maps_place_set_categories(place, cat_list);*/
/*maps_item_list_remove_all(cat_list, maps_place_category_destroy);*/
/*}*/
cats = g_list_next(cats);
}
- if (g_list_length(cat_list) > 0) {
+ //if (g_list_length(cat_list) > 0) {
+ int length = 0;
+ maps_item_list_get_length(cat_list, &length);
+ if (length > 0) {
maps_place_set_categories(place, cat_list);
maps_item_list_remove_all(cat_list, maps_place_category_destroy);
}
/*maps_item_list_destroy(image_list); */
maps_item_list_append(place_list, place, maps_place_clone);
- maps_place_image_destroy(place);
+ maps_place_destroy(place);
place = NULL;
temp_place = temp_place->next;
}