Commit 2df96df5 authored by Youness Alaoui's avatar Youness Alaoui

Merge remote branch 'sjoerd/master' into nice-kakaroto

parents c88446be 90f1e55c
......@@ -819,6 +819,8 @@ nice_agent_set_property (
{
case PROP_MAIN_CONTEXT:
agent->main_context = g_value_get_pointer (value);
if (agent->main_context != NULL)
g_main_context_ref (agent->main_context);
break;
case PROP_COMPATIBILITY:
......@@ -2452,6 +2454,10 @@ nice_agent_dispose (GObject *object)
g_free (agent->software_attribute);
agent->software_attribute = NULL;
if (agent->main_context != NULL)
g_main_context_unref (agent->main_context);
agent->main_context = NULL;
if (G_OBJECT_CLASS (nice_agent_parent_class)->dispose)
G_OBJECT_CLASS (nice_agent_parent_class)->dispose (object);
......
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