mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-09 13:10:39 +01:00
supplicant: disconnect properties handler on dispose
The supplicant interface's proxy may outlive the interface object
itself, so we must ensure that all signal handlers are disconnected.
Fixes a crash on suspend/resume.
Fixes: 59c8192b22
This commit is contained in:
parent
4213c17b44
commit
e5e0fa566b
1 changed files with 2 additions and 0 deletions
|
|
@ -1285,6 +1285,8 @@ dispose (GObject *object)
|
|||
{
|
||||
NMSupplicantInterfacePrivate *priv = NM_SUPPLICANT_INTERFACE_GET_PRIVATE (object);
|
||||
|
||||
if (priv->iface_proxy)
|
||||
g_signal_handlers_disconnect_by_data (priv->iface_proxy, NM_SUPPLICANT_INTERFACE (object));
|
||||
g_clear_object (&priv->iface_proxy);
|
||||
|
||||
if (priv->init_cancellable)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue