aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorxclaesse <xclaesse@4ee84921-47dd-4033-b63a-18d7a039a3e4>2008-11-22 00:25:07 +0800
committerxclaesse <xclaesse@4ee84921-47dd-4033-b63a-18d7a039a3e4>2008-11-22 00:25:07 +0800
commit084a45531a3317b8194eb397295750a491a1ba19 (patch)
treef152fd9233a03ce4069dcdab1530d163fa4760b8
parent9481adffed021652ca6d7cba48137cbcd5272176 (diff)
downloadgsoc2013-empathy-084a45531a3317b8194eb397295750a491a1ba19.tar
gsoc2013-empathy-084a45531a3317b8194eb397295750a491a1ba19.tar.gz
gsoc2013-empathy-084a45531a3317b8194eb397295750a491a1ba19.tar.bz2
gsoc2013-empathy-084a45531a3317b8194eb397295750a491a1ba19.tar.lz
gsoc2013-empathy-084a45531a3317b8194eb397295750a491a1ba19.tar.xz
gsoc2013-empathy-084a45531a3317b8194eb397295750a491a1ba19.tar.zst
gsoc2013-empathy-084a45531a3317b8194eb397295750a491a1ba19.zip
Avoid a string dup.
git-svn-id: svn+ssh://svn.gnome.org/svn/empathy/trunk@1912 4ee84921-47dd-4033-b63a-18d7a039a3e4
-rw-r--r--src/empathy.c6
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