summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-06-23 16:36:52 +0200
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-06-23 16:36:52 +0200
commit88da1cb9c683c534ab63a0f050f2ec82f5cbb770 (patch)
tree2a52a9885275a37635f1e5f077fc5f1f3422e0f8
parent1b9a7e2984e98ae5acebb7964a826330fc8234c3 (diff)
get_self_contact_cb: no need to get the observer
-rw-r--r--telepathy-logger/channel-text.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/telepathy-logger/channel-text.c b/telepathy-logger/channel-text.c
index 920c786..2e4e473 100644
--- a/telepathy-logger/channel-text.c
+++ b/telepathy-logger/channel-text.c
@@ -125,7 +125,6 @@ get_self_contact_cb (TpConnection *connection,
gpointer user_data,
GObject *weak_object)
{
- TplObserver *observer = _tpl_observer_new (); /* singleton */
TplActionChain *ctx = user_data;
TplChannelText *tpl_text = _tpl_action_chain_get_object (ctx);
TplChannel *tpl_chan = TPL_CHANNEL (tpl_text);
@@ -146,14 +145,12 @@ get_self_contact_cb (TpConnection *connection,
PATH_DEBUG (tpl_text, "Error resolving self handle for connection %s."
" Aborting channel observation", conn_path);
- g_object_unref (observer);
_tpl_action_chain_terminate (ctx);
return;
}
_tpl_channel_text_set_my_contact (tpl_text, contacts[0]);
- g_object_unref (observer);
_tpl_action_chain_continue (ctx);
}