diff options
Diffstat (limited to 'libgweather')
-rw-r--r-- | libgweather/tests/test_libgweather.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libgweather/tests/test_libgweather.c b/libgweather/tests/test_libgweather.c index 023454d..a8fb7a1 100644 --- a/libgweather/tests/test_libgweather.c +++ b/libgweather/tests/test_libgweather.c @@ -309,9 +309,8 @@ test_walk_world (void) /* Check that we visited a reasonable number of nodes. * Due to implicit nearest nodes, this needs to be more than the number * of DB entries. */ - cur = gweather_location_get_world (); - g_assert_cmpint (visited, >, cur->db->locations->len); - g_clear_object (&cur); + GWeatherDb *db = gweather_get_db (); + g_assert_cmpint (visited, >, db->locations->len); /* noop, but asserts we did not leak */ gweather_test_reset_world (); |