diff options
author | Xavier Claessens <xavier.claessens@collabora.co.uk> | 2012-05-10 14:59:46 +0200 |
---|---|---|
committer | Xavier Claessens <xavier.claessens@collabora.co.uk> | 2012-05-10 15:13:24 +0200 |
commit | b7eaf004dd62f4425cc6027420533b493640d70d (patch) | |
tree | d32533c7cda33cdfd4e4a92b6f49be72f4c95422 /src/muc-factory.c | |
parent | 591ee25d44a016b38067d1f9a8772dca0fbca09c (diff) | |
download | telepathy-gabble-b7eaf004dd62f4425cc6027420533b493640d70d.tar.gz |
Stop using tp_handle_ref/unref
Diffstat (limited to 'src/muc-factory.c')
-rw-r--r-- | src/muc-factory.c | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/src/muc-factory.c b/src/muc-factory.c index c208c2dff..ab1de5bd9 100644 --- a/src/muc-factory.c +++ b/src/muc-factory.c @@ -555,8 +555,6 @@ do_invite (GabbleMucFactory *fac, { DEBUG ("ignoring invite to room \"%s\"; we're already there", room); } - - tp_handle_unref (room_repo, room_handle); } struct DiscoInviteData { @@ -584,8 +582,6 @@ obsolete_invite_disco_cb (GabbleDisco *self, GabbleMucFactory *fac = GABBLE_MUC_FACTORY (data->factory); GabbleMucFactoryPrivate *priv = fac->priv; - TpHandleRepoIface *contact_repo = tp_base_connection_get_handles ( - (TpBaseConnection *) priv->conn, TP_HANDLE_TYPE_CONTACT); WockyNode *identity; const char *category = NULL, *type = NULL; @@ -617,7 +613,6 @@ obsolete_invite_disco_cb (GabbleDisco *self, do_invite (fac, jid, data->inviter, data->reason); out: - tp_handle_unref (contact_repo, data->inviter); g_free (data->reason); g_slice_free (struct DiscoInviteData, data); } @@ -690,8 +685,6 @@ process_muc_invite (GabbleMucFactory *fac, do_invite (fac, room, inviter_handle, reason); g_free (room); - tp_handle_unref (contact_repo, inviter_handle); - return TRUE; } @@ -769,7 +762,6 @@ process_obsolete_invite (GabbleMucFactory *fac, { DEBUG ("obsolete MUC invite disco failed, freeing info"); - tp_handle_unref (contact_repo, inviter_handle); g_free (disco_udata->reason); g_slice_free (struct DiscoInviteData, disco_udata); } @@ -1340,7 +1332,6 @@ handle_text_channel_request (GabbleMucFactory *self, } tp_handle_set_add (handles, handle); - tp_handle_unref (contact_handles, handle); } } @@ -1415,11 +1406,6 @@ handle_text_channel_request (GabbleMucFactory *self, goto out; } } - else - { - /* ref room here so we can unref it again, below */ - tp_handle_ref (room_handles, room); - } /* Make sure TargetID and RoomName don't conflict. */ if (room_name != NULL && room_name[0] != '\0') @@ -1543,9 +1529,6 @@ handle_text_channel_request (GabbleMucFactory *self, } out: - if (room != 0) - tp_handle_unref (room_handles, room); - g_hash_table_unref (final_channels); g_array_unref (final_handles); g_free (final_ids); |