diff options
author | Jonny Lamb <jonny.lamb@collabora.co.uk> | 2009-01-31 01:35:40 +0800 |
---|---|---|
committer | Xavier Claessens <xclaesse@src.gnome.org> | 2009-01-31 01:35:40 +0800 |
commit | 4df45fb806fdb78acbbca7e704780d427f11df2f (patch) | |
tree | 7af1b6b8fdb98058585a2a729584b729caca20df /tests/empetit.c | |
parent | 8a2d8d7c22750a2a23f5bb7c55f0e0c346aadb12 (diff) | |
download | gsoc2013-empathy-4df45fb806fdb78acbbca7e704780d427f11df2f.tar gsoc2013-empathy-4df45fb806fdb78acbbca7e704780d427f11df2f.tar.gz gsoc2013-empathy-4df45fb806fdb78acbbca7e704780d427f11df2f.tar.bz2 gsoc2013-empathy-4df45fb806fdb78acbbca7e704780d427f11df2f.tar.lz gsoc2013-empathy-4df45fb806fdb78acbbca7e704780d427f11df2f.tar.xz gsoc2013-empathy-4df45fb806fdb78acbbca7e704780d427f11df2f.tar.zst gsoc2013-empathy-4df45fb806fdb78acbbca7e704780d427f11df2f.zip |
Rename _get_selected to _dup_selected and make sure the contact is unrefed.
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
svn path=/trunk/; revision=2357
Diffstat (limited to 'tests/empetit.c')
-rw-r--r-- | tests/empetit.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/empetit.c b/tests/empetit.c index 76d0528d8..2d71c5359 100644 --- a/tests/empetit.c +++ b/tests/empetit.c @@ -37,12 +37,14 @@ clicked_cb (GtkButton *button, EmpathyContactSelector *selector = EMPATHY_CONTACT_SELECTOR (data); EmpathyContact *contact; - contact = empathy_contact_selector_get_selected (selector); + contact = empathy_contact_selector_dup_selected (selector); if (!contact) return; empathy_dispatcher_chat_with_contact (contact, chat_cb, NULL); + + g_object_unref (contact); } int main (int argc, |