mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-01 01:20:12 +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) (cherry picked from commit6c1cbe4d61)
This commit is contained in:
parent
6fd26b6a46
commit
f4af4e1d5a
1 changed files with 3 additions and 0 deletions
|
|
@ -2769,6 +2769,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