libnm: fix unregistering signal handler of NMConnection from NMSetting

Seems we didn't actually unregister the signal handlers. Ups.

Fixes: dfba4ce1e1
This commit is contained in:
Thomas Haller 2019-01-14 20:52:59 +01:00
parent 08a0f682e1
commit 021564c069

View file

@ -105,7 +105,7 @@ setting_changed_cb (NMSetting *setting,
static gboolean
_setting_release (gpointer key, gpointer value, gpointer user_data)
{
g_signal_handlers_disconnect_by_func (user_data, setting_changed_cb, value);
g_signal_handlers_disconnect_by_func (value, setting_changed_cb, user_data);
return TRUE;
}