aboutsummaryrefslogtreecommitdiffstats
path: root/src/empathy-new-chatroom-dialog.c
diff options
context:
space:
mode:
authorPierre-Luc Beaudoin <pierre-luc@pierlux.com>2009-04-18 03:27:11 +0800
committerPierre-Luc Beaudoin <pierre-luc@pierlux.com>2009-04-18 04:24:16 +0800
commit34f8f2ae58e6dccd3329acac87a842e9afdda0e3 (patch)
tree018dd9784bfa02e94e87302ee4f02b407f26812d /src/empathy-new-chatroom-dialog.c
parentedaa7544cdc28469bb31679a9032b83b9cc218af (diff)
downloadgsoc2013-empathy-34f8f2ae58e6dccd3329acac87a842e9afdda0e3.tar
gsoc2013-empathy-34f8f2ae58e6dccd3329acac87a842e9afdda0e3.tar.gz
gsoc2013-empathy-34f8f2ae58e6dccd3329acac87a842e9afdda0e3.tar.bz2
gsoc2013-empathy-34f8f2ae58e6dccd3329acac87a842e9afdda0e3.tar.lz
gsoc2013-empathy-34f8f2ae58e6dccd3329acac87a842e9afdda0e3.tar.xz
gsoc2013-empathy-34f8f2ae58e6dccd3329acac87a842e9afdda0e3.tar.zst
gsoc2013-empathy-34f8f2ae58e6dccd3329acac87a842e9afdda0e3.zip
Fix memory leaks + minor coding style changes
Diffstat (limited to 'src/empathy-new-chatroom-dialog.c')
-rw-r--r--src/empathy-new-chatroom-dialog.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/empathy-new-chatroom-dialog.c b/src/empathy-new-chatroom-dialog.c
index da3112fc7..1bb034a2b 100644
--- a/src/empathy-new-chatroom-dialog.c
+++ b/src/empathy-new-chatroom-dialog.c
@@ -429,7 +429,7 @@ new_chatroom_dialog_new_room_cb (EmpathyTpRoomlist *room_list,
GtkListStore *store;
GtkTreeIter iter;
gchar *members;
- gchar *tool_tip;
+ gchar *tooltip;
DEBUG ("New chatroom listed: %s (%s)",
empathy_chatroom_get_name (chatroom),
@@ -440,12 +440,11 @@ new_chatroom_dialog_new_room_cb (EmpathyTpRoomlist *room_list,
selection = gtk_tree_view_get_selection (view);
store = GTK_LIST_STORE (dialog->model);
members = g_strdup_printf ("%d", empathy_chatroom_get_members_count (chatroom));
- tool_tip = g_strdup_printf ("<b>%s</b>\nInvite required: %s\nPassword required: %s\nMembers: %s",
+ tooltip = g_strdup_printf ("<b>%s</b>\nInvite required: %s\nPassword required: %s\nMembers: %s",
empathy_chatroom_get_name (chatroom),
empathy_chatroom_get_invite_only (chatroom) ? _("Yes") : _("No"),
empathy_chatroom_get_need_password (chatroom) ? _("Yes") : _("No"),
- members
- );
+ members);
gtk_list_store_append (store, &iter);
gtk_list_store_set (store, &iter,
@@ -454,8 +453,11 @@ new_chatroom_dialog_new_room_cb (EmpathyTpRoomlist *room_list,
COL_NAME, empathy_chatroom_get_name (chatroom),
COL_ROOM, empathy_chatroom_get_room (chatroom),
COL_MEMBERS, members,
- COL_TOOL_TIP, tool_tip,
+ COL_TOOL_TIP, tooltip,
-1);
+
+ g_free (members);
+ g_free (tooltip);
}
static void