Commit ff68f912 authored by Xavier Claessens's avatar Xavier Claessens

Add a weak pointer ref inside the costructor.

svn path=/trunk/; revision=2080
parent 4cf0b553
......@@ -441,6 +441,7 @@ do_constructor (GType type,
retval = G_OBJECT_CLASS (empathy_account_manager_parent_class)->constructor (type,
n_construct_params,
construct_params);
g_object_add_weak_pointer (retval, (gpointer *) &retval);
manager_singleton = EMPATHY_ACCOUNT_MANAGER (retval);
}
else
......
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