aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJonny Lamb <jonny.lamb@collabora.co.uk>2009-04-22 19:01:37 +0800
committerJonny Lamb <jonny.lamb@collabora.co.uk>2009-04-22 19:01:37 +0800
commit03899c3c61a0e9a975caaaf2e6f30ccfeaeaeff5 (patch)
tree7efadd07e27ae921287de2d4fd8611aefdfd27fd /src
parente444ee9b051168bbd591b9eadb03ae5f735e346f (diff)
downloadgsoc2013-empathy-03899c3c61a0e9a975caaaf2e6f30ccfeaeaeff5.tar
gsoc2013-empathy-03899c3c61a0e9a975caaaf2e6f30ccfeaeaeff5.tar.gz
gsoc2013-empathy-03899c3c61a0e9a975caaaf2e6f30ccfeaeaeff5.tar.bz2
gsoc2013-empathy-03899c3c61a0e9a975caaaf2e6f30ccfeaeaeff5.tar.lz
gsoc2013-empathy-03899c3c61a0e9a975caaaf2e6f30ccfeaeaeff5.tar.xz
gsoc2013-empathy-03899c3c61a0e9a975caaaf2e6f30ccfeaeaeff5.tar.zst
gsoc2013-empathy-03899c3c61a0e9a975caaaf2e6f30ccfeaeaeff5.zip
Renamed empathy_account_chooser_get_account to empathy_account_chooser_dup_account and fixed leaks.
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
Diffstat (limited to 'src')
-rw-r--r--src/empathy-chatrooms-window.c4
-rw-r--r--src/empathy-new-chatroom-dialog.c6
2 files changed, 6 insertions, 4 deletions
diff --git a/src/empathy-chatrooms-window.c b/src/empathy-chatrooms-window.c
index acd559e5f..fa63d5a51 100644
--- a/src/empathy-chatrooms-window.c
+++ b/src/empathy-chatrooms-window.c
@@ -318,7 +318,7 @@ chatrooms_window_model_refresh_data (EmpathyChatroomsWindow *window,
/* Look up chatrooms */
account_chooser = EMPATHY_ACCOUNT_CHOOSER (window->account_chooser);
- account = empathy_account_chooser_get_account (account_chooser);
+ account = empathy_account_chooser_dup_account (account_chooser);
chatrooms = empathy_chatroom_manager_get_chatrooms (window->manager, account);
@@ -509,7 +509,7 @@ chatrooms_window_chatroom_added_cb (EmpathyChatroomManager *manager,
McAccount *account;
account_chooser = EMPATHY_ACCOUNT_CHOOSER (window->account_chooser);
- account = empathy_account_chooser_get_account (account_chooser);
+ account = empathy_account_chooser_dup_account (account_chooser);
if (!account) {
chatrooms_window_model_add (window, chatroom, FALSE);
diff --git a/src/empathy-new-chatroom-dialog.c b/src/empathy-new-chatroom-dialog.c
index abfdcf0ac..837d9acfe 100644
--- a/src/empathy-new-chatroom-dialog.c
+++ b/src/empathy-new-chatroom-dialog.c
@@ -342,7 +342,7 @@ new_chatroom_dialog_update_widgets (EmpathyNewChatroomDialog *dialog)
const gchar *room;
account_chooser = EMPATHY_ACCOUNT_CHOOSER (dialog->account_chooser);
- account = empathy_account_chooser_get_account (account_chooser);
+ account = empathy_account_chooser_dup_account (account_chooser);
profile = mc_account_get_profile (account);
protocol = mc_profile_get_protocol_name (profile);
@@ -388,7 +388,7 @@ new_chatroom_dialog_account_changed_cb (GtkComboBox *combobox,
new_chatroom_dialog_model_clear (dialog);
account_chooser = EMPATHY_ACCOUNT_CHOOSER (dialog->account_chooser);
- account = empathy_account_chooser_get_account (account_chooser);
+ account = empathy_account_chooser_dup_account (account_chooser);
dialog->room_list = empathy_tp_roomlist_new (account);
if (dialog->room_list) {
@@ -409,6 +409,8 @@ new_chatroom_dialog_account_changed_cb (GtkComboBox *combobox,
}
new_chatroom_dialog_update_widgets (dialog);
+
+ g_object_unref (account);
}
static void