Commit eb594ab2 authored by Zeeshan Ali's avatar Zeeshan Ali

modem-source: Disconnect signals on modem removal

It seems that libmm can still keep a modem around for it to launch
signals after signaling its removal so lets be safe and remove the
signal handlers when modem is reported to have been removed.
parent 77a7367b
......@@ -312,6 +312,9 @@ on_mm_object_removed (GDBusObjectManager *manager,
if (priv->mm_object == NULL || priv->mm_object != mm_object)
return;
g_signal_handlers_disconnect_by_func (G_OBJECT (priv->modem_location),
G_CALLBACK (on_location_changed),
user_data);
g_clear_object (&priv->mm_object);
g_clear_object (&priv->modem);
g_clear_object (&priv->modem_location);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment