empathy r1912 - trunk/src
- From: xclaesse svn gnome org
- To: svn-commits-list gnome org
- Subject: empathy r1912 - trunk/src
- Date: Fri, 21 Nov 2008 16:25:07 +0000 (UTC)
Author: xclaesse
Date: Fri Nov 21 16:25:07 2008
New Revision: 1912
URL: http://svn.gnome.org/viewvc/empathy?rev=1912&view=rev
Log:
Avoid a string dup.
Modified:
trunk/src/empathy.c
Modified: trunk/src/empathy.c
==============================================================================
--- trunk/src/empathy.c (original)
+++ trunk/src/empathy.c Fri Nov 21 16:25:07 2008
@@ -65,9 +65,9 @@
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 @@
empathy_tp_file_keep_alive (tp_file);
g_object_unref (tp_file);
}
-
- g_free (channel_type);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]