1
0
Fork 0
mirror of https://gitlab.gnome.org/GNOME/calls.git synced 2024-12-13 16:07:36 +00:00

call: Fix memory leaks

This commit is contained in:
Evangelos Ribeiro Tzaras 2022-01-27 16:34:55 +01:00
parent 6c857ba94a
commit 1d1489e167

View file

@ -174,6 +174,18 @@ calls_call_get_property (GObject *object,
}
}
static void
calls_call_dispose (GObject *object)
{
CallsCallPrivate *priv = calls_call_get_instance_private (CALLS_CALL (object));
g_clear_pointer (&priv->id, g_free);
g_clear_pointer (&priv->name, g_free);
G_OBJECT_CLASS (calls_call_parent_class)->dispose (object);
}
static void
calls_call_class_init (CallsCallClass *klass)
{
@ -181,6 +193,7 @@ calls_call_class_init (CallsCallClass *klass)
object_class->get_property = calls_call_get_property;
object_class->set_property = calls_call_set_property;
object_class->dispose = calls_call_dispose;
klass->get_protocol = calls_call_real_get_protocol;
klass->answer = calls_call_real_answer;