aboutsummaryrefslogtreecommitdiffstats
path: root/src/empathy.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/empathy.c')
-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