static gboolean timeout_func(gpointer data)
{
g_main_loop_quit((GMainLoop *) data);
+ g_main_loop_unref((GMainLoop *) data);
return FALSE;
}
{
if (mainloop) {
g_main_loop_quit(mainloop);
+ g_main_loop_unref(mainloop);
mainloop = NULL;
}
}
assert(bottom_right);
ret = maps_area_create_rectangle(top_left, bottom_right, &boundary);
+
+ maps_coordinates_destroy(top_left);
+ maps_coordinates_destroy(bottom_right);
+
assert_eq(ret, MAPS_ERROR_NONE);
assert(boundary);
assert(service_available);
service_available = false;
- ret = maps_coordinates_destroy(top_left);
- assert_eq(ret, MAPS_ERROR_NONE);
-
- ret = maps_coordinates_destroy(bottom_right);
- assert_eq(ret, MAPS_ERROR_NONE);
-
ret = maps_area_destroy(boundary);
assert_eq(ret, MAPS_ERROR_NONE);
} else {
+ maps_area_destroy(boundary);
+
assert_eq(ret, MAPS_ERROR_NOT_SUPPORTED);
}
} else {
assert_eq(ret, MAPS_ERROR_NONE);
assert(address);
- maps_address_set_city(address, "Berlin");
+ ret = maps_address_set_city(address, "Berlin");
assert_eq(ret, MAPS_ERROR_NONE);
- /* maps_address_set_street(address, "Rosa-Luxemburg"); */
+ /* ret= maps_address_set_street(address, "Rosa-Luxemburg"); */
/* assert_eq(ret, MAPS_ERROR_NONE); */
- /* maps_address_set_building_number(address, "13"); */
+ /* ret = maps_address_set_building_number(address, "13"); */
/* assert_eq(ret, MAPS_ERROR_NONE); */
ret = maps_service_geocode_by_structured_address(__pMaps, address, __preference, __utc_maps_location_foreach_cb, NULL, &request_id);
ret = maps_address_destroy(address);
assert_eq(ret, MAPS_ERROR_NONE);
} else {
+ maps_address_destroy(address);
assert_eq(ret, MAPS_ERROR_NOT_SUPPORTED);
}
} else {
static gboolean timeout_func(gpointer data)
{
g_main_loop_quit((GMainLoop *) data);
+ g_main_loop_unref((GMainLoop *) data);
return FALSE;
}
{
if (mainloop) {
g_main_loop_quit(mainloop);
+ g_main_loop_unref(mainloop);
mainloop = NULL;
}
}
assert(bottom_right);
ret = maps_area_create_rectangle(top_left, bottom_right, &boundary);
+
+ maps_coordinates_destroy(top_left);
+ maps_coordinates_destroy(bottom_right);
+
assert_eq(ret, MAPS_ERROR_NONE);
assert(boundary);
assert(service_available);
service_available = false;
- ret = maps_coordinates_destroy(top_left);
- assert_eq(ret, MAPS_ERROR_NONE);
-
- ret = maps_coordinates_destroy(bottom_right);
- assert_eq(ret, MAPS_ERROR_NONE);
-
ret = maps_area_destroy(boundary);
assert_eq(ret, MAPS_ERROR_NONE);
} else {
+ maps_area_destroy(boundary);
+
assert_eq(ret, MAPS_ERROR_NOT_SUPPORTED);
}
} else {
assert_eq(ret, MAPS_ERROR_NONE);
assert(address);
- maps_address_set_city(address, "Berlin");
+ ret = maps_address_set_city(address, "Berlin");
assert_eq(ret, MAPS_ERROR_NONE);
/* maps_address_set_street(address, "Rosa-Luxemburg"); */
/* assert_eq(ret, MAPS_ERROR_NONE); */
ret = maps_address_destroy(address);
assert_eq(ret, MAPS_ERROR_NONE);
} else {
+ maps_address_destroy(address);
assert_eq(ret, MAPS_ERROR_NOT_SUPPORTED);
}
} else {
int ret = system_info_get_platform_string("http://tizen.org/feature/profile", &profile);
if (ret == SYSTEM_INFO_ERROR_NONE && profile && *profile) {
if (!strcmp("wearable", profile))
- ret = system_info_get_platform_bool("http://tizen.org/feature/network.internet", &__is_supported);
+ system_info_get_platform_bool("http://tizen.org/feature/network.internet", &__is_supported);
}
if (profile)
free(profile);
ret = maps_view_object_marker_get_image_file(marker, &file_path);
ASSERT_IF_VAL_REF2(ret, is_maps_supported, MAPS_ERROR_NONE, MAPS_ERROR_NOT_SUPPORTED);
+ free(file_path);
+ file_path = NULL;
+
ret = maps_view_object_marker_get_size(marker, &width, &height);
ASSERT_IF_VAL_REF2(ret, is_maps_supported, MAPS_ERROR_NONE, MAPS_ERROR_NOT_SUPPORTED);
ret = maps_view_object_marker_get_image_file(NULL, &file_path);
ASSERT_IF_VAL_REF2(ret, is_maps_supported, MAPS_ERROR_INVALID_PARAMETER, MAPS_ERROR_NOT_SUPPORTED);
+ free(file_path);
+ file_path = NULL;
+
ret = maps_view_object_marker_get_image_file(marker, NULL);
ASSERT_IF_VAL_REF2(ret, is_maps_supported, MAPS_ERROR_INVALID_PARAMETER, MAPS_ERROR_NOT_SUPPORTED);
-
ret = maps_view_object_destroy(marker);
ASSERT_IF_VAL_REF2(ret, is_maps_supported, MAPS_ERROR_NONE, MAPS_ERROR_NOT_SUPPORTED);