mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-08 09:30:21 +01:00
vpn: disconnect signal handlers from proxy in NMVpnConnection::dispose()
We cannot be sure who holds a reference to the proxy, and who is gonna call us back after the VPN connection instance is destroyed. (cherry picked from commit6ebb9091d2) (cherry picked from commitf71f9b54a8)
This commit is contained in:
parent
0e633c232d
commit
6c1cbe4d61
1 changed files with 3 additions and 0 deletions
|
|
@ -2762,6 +2762,9 @@ dispose (GObject *object)
|
|||
NMVpnConnection *self = NM_VPN_CONNECTION (object);
|
||||
NMVpnConnectionPrivate *priv = NM_VPN_CONNECTION_GET_PRIVATE (self);
|
||||
|
||||
if (priv->proxy)
|
||||
g_signal_handlers_disconnect_by_data (priv->proxy, self);
|
||||
|
||||
nm_clear_g_source (&priv->start_timeout);
|
||||
|
||||
g_clear_pointer (&priv->connect_hash, g_variant_unref);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue