aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/empetit.c4
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,