Skip to content
Snippets Groups Projects
Commit 5d93cf33 authored by George Kiagiadakis's avatar George Kiagiadakis
Browse files

remote-endpoint: disconnect the control-value change callback when the proxy is destroyed

This avoids the theoretical crash that would happen if you change
the control value on an endpoint whose client-endpoint proxy has
already been destroyed
parent b770cf6a
No related branches found
No related tags found
No related merge requests found
......@@ -385,6 +385,8 @@ client_endpoint_proxy_destroy (void *object)
{
WpEndpoint *ep = object;
g_object_set_qdata (G_OBJECT (ep), remote_endpoint_data_quark (), NULL);
g_signal_handlers_disconnect_matched (ep, G_SIGNAL_MATCH_FUNC, 0, 0, NULL,
on_endpoint_notify_control_value, NULL);
}
static const struct pw_proxy_events proxy_events = {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment