diff options
author | Xavier Claessens <xclaesse@src.gnome.org> | 2008-11-22 00:25:07 +0800 |
---|---|---|
committer | Xavier Claessens <xclaesse@src.gnome.org> | 2008-11-22 00:25:07 +0800 |
commit | 6c7b2aa5c1581f9e40cfdc38f67fe7f479a745b5 (patch) | |
tree | f152fd9233a03ce4069dcdab1530d163fa4760b8 | |
parent | b32f971286edbf53cfe2db9dfaa20d5cb8b74576 (diff) | |
download | gsoc2013-empathy-6c7b2aa5c1581f9e40cfdc38f67fe7f479a745b5.tar gsoc2013-empathy-6c7b2aa5c1581f9e40cfdc38f67fe7f479a745b5.tar.gz gsoc2013-empathy-6c7b2aa5c1581f9e40cfdc38f67fe7f479a745b5.tar.bz2 gsoc2013-empathy-6c7b2aa5c1581f9e40cfdc38f67fe7f479a745b5.tar.lz gsoc2013-empathy-6c7b2aa5c1581f9e40cfdc38f67fe7f479a745b5.tar.xz gsoc2013-empathy-6c7b2aa5c1581f9e40cfdc38f67fe7f479a745b5.tar.zst gsoc2013-empathy-6c7b2aa5c1581f9e40cfdc38f67fe7f479a745b5.zip |
Avoid a string dup.
svn path=/trunk/; revision=1912
-rw-r--r-- | src/empathy.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/empathy.c b/src/empathy.c index fc9640556..b1ea60018 100644 --- a/src/empathy.c +++ b/src/empathy.c @@ -65,9 +65,9 @@ dispatch_channel_cb (EmpathyDispatcher *dispatcher, TpChannel *channel, gpointer user_data) { - gchar *channel_type; + const gchar *channel_type; - g_object_get (channel, "channel-type", &channel_type, NULL); + channel_type = tp_channel_get_channel_type (channel); if (!tp_strdiff (channel_type, TP_IFACE_CHANNEL_TYPE_TEXT)) { EmpathyTpChat *tp_chat; EmpathyChat *chat = NULL; @@ -115,8 +115,6 @@ dispatch_channel_cb (EmpathyDispatcher *dispatcher, empathy_tp_file_keep_alive (tp_file); g_object_unref (tp_file); } - - g_free (channel_type); } static void |