diff options
author | Cosimo Alfarano <cosimo.alfarano@collabora.co.uk> | 2010-02-17 14:51:46 +0000 |
---|---|---|
committer | Cosimo Alfarano <cosimo.alfarano@collabora.co.uk> | 2010-02-18 13:11:13 +0000 |
commit | cab4c064c3bbe0a30f83d0f935f9c549682a99ba (patch) | |
tree | bd2acb71b705cf570bc8a18d28a5f604bfeaf686 | |
parent | 039f10d121c595f7582cc86ad8609df2c4ddf30e (diff) | |
download | telepathy-logger-cab4c064c3bbe0a30f83d0f935f9c549682a99ba.tar.gz |
removed useless g_strdup over not stored string
-rw-r--r-- | telepathy-logger/channel-text.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/telepathy-logger/channel-text.c b/telepathy-logger/channel-text.c index fa89650..2660253 100644 --- a/telepathy-logger/channel-text.c +++ b/telepathy-logger/channel-text.c @@ -763,13 +763,15 @@ on_sent_signal_cb (TpChannel *proxy, /* Initialise TplLogEntryText */ if (!tpl_channel_text_is_chatroom (tpl_text)) - chat_id = g_strdup (tpl_contact_get_identifier (tpl_contact_receiver)); + chat_id = tpl_contact_get_identifier (tpl_contact_receiver); else - chat_id = g_strdup (tpl_channel_text_get_chatroom_id (tpl_text)); + chat_id = tpl_channel_text_get_chatroom_id (tpl_text); + + account_path = tp_proxy_get_object_path ( + TP_PROXY (tpl_channel_get_account (TPL_CHANNEL (tpl_text)))); - log = tpl_log_entry_text_new (arg_Timestamp, chat_id, + log = tpl_log_entry_text_new (arg_Timestamp, account_path, chat_id, TPL_LOG_ENTRY_DIRECTION_OUT); - g_free (chat_id); tpl_log_entry_text_set_timestamp (log, (time_t) arg_Timestamp); tpl_log_entry_text_set_signal_type (log, TPL_LOG_ENTRY_TEXT_SIGNAL_SENT); |