mirror of
https://gitlab.freedesktop.org/pipewire/wireplumber.git
synced 2026-05-05 18:18:15 +02:00
proxy: destroy pw_proxy if bind_error is called
This commit is contained in:
parent
0a987ea367
commit
21e73141c6
1 changed files with 5 additions and 0 deletions
|
|
@ -343,6 +343,11 @@ static void
|
|||
bind_error (WpProxy * proxy, int seq, int res, const gchar *msg,
|
||||
WpTransition * transition)
|
||||
{
|
||||
WpProxyPrivate *priv = wp_proxy_get_instance_private (proxy);
|
||||
|
||||
if (priv->pw_proxy)
|
||||
pw_proxy_destroy (priv->pw_proxy);
|
||||
|
||||
wp_transition_return_error (transition, g_error_new (WP_DOMAIN_LIBRARY,
|
||||
WP_LIBRARY_ERROR_OPERATION_FAILED, "%s", msg));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue