pw-cat: cleanup registry proxy

This commit is contained in:
Wim Taymans 2020-06-02 18:16:12 +02:00
parent 3890f06c83
commit 203c89daaf

View file

@ -1583,6 +1583,8 @@ error_connect_fail:
if (data.stream) if (data.stream)
pw_stream_destroy(data.stream); pw_stream_destroy(data.stream);
error_no_stream: error_no_stream:
if (data.registry)
pw_proxy_destroy((struct pw_proxy*)data.registry);
error_no_registry: error_no_registry:
pw_core_disconnect(data.core); pw_core_disconnect(data.core);
error_ctx_connect_failed: error_ctx_connect_failed:
@ -1598,6 +1600,7 @@ error_bad_file:
sf_close(data.file); sf_close(data.file);
if (data.midi.file) if (data.midi.file)
midi_file_close(data.midi.file); midi_file_close(data.midi.file);
pw_deinit();
return exit_code; return exit_code;
error_usage: error_usage: