[Telepathy-commits] [telepathy-salut/master] Revert a change on counting reference: SalutContact does not ref SalutConnection anymore
Alban Crequy
alban.crequy at collabora.co.uk
Tue Nov 25 03:59:30 PST 2008
---
src/salut-contact.c | 8 +-------
1 files changed, 1 insertions(+), 7 deletions(-)
diff --git a/src/salut-contact.c b/src/salut-contact.c
index 013c7e1..8256782 100644
--- a/src/salut-contact.c
+++ b/src/salut-contact.c
@@ -165,7 +165,7 @@ salut_contact_set_property (GObject *object,
switch (property_id)
{
case PROP_CONNECTION:
- self->connection = g_value_dup_object (value);
+ self->connection = g_value_get_object (value);
break;
case PROP_NAME:
self->name = g_value_dup_string (value);
@@ -294,12 +294,6 @@ salut_contact_dispose (GObject *object)
if (self->handle != 0)
tp_handle_unref (contact_repo, self->handle);
- if (self->connection != NULL)
- {
- g_object_unref (self->connection);
- self->connection = NULL;
- }
-
if (G_OBJECT_CLASS (salut_contact_parent_class)->dispose)
G_OBJECT_CLASS (salut_contact_parent_class)->dispose (object);
}
--
1.5.6.5
More information about the Telepathy-commits
mailing list