telepathy: Fix a race condition in the handling of weak refs to TpContacts
authorPhilip Withnall <philip@tecnocode.co.uk>
Sun, 2 Sep 2012 19:56:44 +0000 (20:56 +0100)
committerJeremy Whiting <jpwhiting@kde.org>
Wed, 5 Sep 2012 23:03:40 +0000 (17:03 -0600)
commit00590b87e2316c7dbd74a072ece72c30ffd89354
tree83f4f42dff8e1e81d5b0fd3557d7db214b708c25
parentfcd452d1bb53d88b87426022f815bf2207f6e073
telepathy: Fix a race condition in the handling of weak refs to TpContacts

Use a WeakRef to maintain the pointer to a TpContact in Tpf.Persona,
rather than g_object_weak_[un]ref() and manually nullifying the pointer.

See the comments in bug #680335 for a full explanation.

Closes: https://bugzilla.gnome.org/show_bug.cgi?id=680335
NEWS
backends/telepathy/lib/tpf-persona.vala
configure.ac