This match the behaviour of empathy_tp_contact_factory_get_from_{ids,handles}
and tp_connection_get_contacts_by_handle.
error,
data->user_data, weak_object);
}
+
+ if (contact != NULL)
+ g_object_unref (contact);
}
+/* The callback is NOT given a reference to the EmpathyContact objects */
void
empathy_tp_contact_factory_get_from_id (EmpathyTpContactFactory *tp_factory,
const gchar *id,
weak_object);
}
+/* The callback is NOT given a reference to the EmpathyContact objects */
static void
get_contact_by_handle_cb (TpConnection *connection,
guint n_contacts,
}
g_clear_error (&err);
+ if (contact != NULL)
+ g_object_unref (contact);
}
void