tests: fix some leaks

See #497
This commit is contained in:
Wim Taymans 2020-12-21 20:07:02 +01:00
parent 32c015d01e
commit 461e3db741
3 changed files with 12 additions and 1 deletions

View file

@ -145,5 +145,10 @@ int main(int argc, char *argv[])
test_create(out);
test_read_write(in, out);
pw_protocol_native_connection_destroy(in);
pw_protocol_native_connection_destroy(out);
pw_context_destroy(context);
pw_main_loop_destroy(loop);
return 0;
}

View file

@ -444,6 +444,7 @@ static void test_endpoint(void)
spa_assert(!d.bound_proxy);
endpoint_clear(&d.endpoint);
pw_proxy_destroy((struct pw_proxy*)d.registry);
pw_context_destroy(d.context);
pw_main_loop_destroy(d.loop);
}