mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-04 13:30:12 -05:00
pw-cat: cleanup registry proxy
This commit is contained in:
parent
3890f06c83
commit
203c89daaf
1 changed files with 3 additions and 0 deletions
|
|
@ -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:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue