add pw_deinit() to cleanup resources

Add and use pw_deinit() to avoid leaking the support plugins and
use this in the main daemon. Makes valgrind output better.
This commit is contained in:
Wim Taymans 2020-06-02 17:16:46 +02:00
parent 09913ca4ab
commit 00d61d958e
3 changed files with 27 additions and 0 deletions

View file

@ -132,6 +132,7 @@ int main(int argc, char *argv[])
pw_daemon_config_free(config);
pw_context_destroy(context);
pw_main_loop_destroy(loop);
pw_deinit();
return 0;
}