diff --git a/src/tests/test-general-with-expect.c b/src/tests/test-general-with-expect.c index 8339fa5d43..cc06be3858 100644 --- a/src/tests/test-general-with-expect.c +++ b/src/tests/test-general-with-expect.c @@ -119,13 +119,13 @@ test_nm_utils_kill_child_async_do (const char *name, pid_t pid, int sig, guint32 timeout_id = g_timeout_add_seconds (5, test_nm_utils_kill_child_async_fail_cb, &data); data.loop = g_main_loop_new (NULL, FALSE); - g_main_run (data.loop); + g_main_loop_run (data.loop); g_assert (data.called); success = g_source_remove (timeout_id); g_assert (success); - g_main_destroy (data.loop); + g_main_loop_unref (data.loop); } static void @@ -574,4 +574,3 @@ main (int argc, char **argv) return g_test_run (); } -