1
0
Fork 0
mirror of https://gitlab.gnome.org/GNOME/calls.git synced 2025-01-06 03:25:31 +00:00

ofono: don't clear self->modem after constructing CallsOfonoOrigin

self->modem is used in calls_ofono_origin_matches; in that context, warn if it is NULL
This commit is contained in:
anteater 2021-04-11 02:37:13 +00:00
parent 9b4563e046
commit cc93733c42

View file

@ -117,9 +117,7 @@ calls_ofono_origin_matches (CallsOfonoOrigin *self,
{
g_return_val_if_fail (CALLS_IS_OFONO_ORIGIN (self), FALSE);
g_return_val_if_fail (path, FALSE);
if (!self->modem)
return FALSE;
g_return_val_if_fail (self->modem, FALSE);
return g_strcmp0 (g_dbus_proxy_get_object_path (G_DBUS_PROXY (self->modem)), path) == 0;
}
@ -504,8 +502,6 @@ constructed (GObject *object)
(GAsyncReadyCallback)voice_new_cb,
self);
g_clear_object (&self->modem);
G_OBJECT_CLASS (calls_ofono_origin_parent_class)->constructed (object);
}