mirror of
https://gitlab.gnome.org/GNOME/calls.git
synced 2024-12-14 00:17:35 +00:00
call: Fix memory leaks
This commit is contained in:
parent
6c857ba94a
commit
1d1489e167
1 changed files with 13 additions and 0 deletions
|
@ -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
|
static void
|
||||||
calls_call_class_init (CallsCallClass *klass)
|
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->get_property = calls_call_get_property;
|
||||||
object_class->set_property = calls_call_set_property;
|
object_class->set_property = calls_call_set_property;
|
||||||
|
object_class->dispose = calls_call_dispose;
|
||||||
|
|
||||||
klass->get_protocol = calls_call_real_get_protocol;
|
klass->get_protocol = calls_call_real_get_protocol;
|
||||||
klass->answer = calls_call_real_answer;
|
klass->answer = calls_call_real_answer;
|
||||||
|
|
Loading…
Reference in a new issue