diff options
author | Jonny Lamb <jonny.lamb@collabora.co.uk> | 2009-04-22 19:07:29 +0800 |
---|---|---|
committer | Jonny Lamb <jonny.lamb@collabora.co.uk> | 2009-04-22 19:07:29 +0800 |
commit | 10a93b8c864c38dacc49a9f33b7ebf0cff549cfb (patch) | |
tree | 843eb32a21ee5ca0ca8598670ebc05ba25776586 /megaphone | |
parent | 03899c3c61a0e9a975caaaf2e6f30ccfeaeaeff5 (diff) | |
download | gsoc2013-empathy-10a93b8c864c38dacc49a9f33b7ebf0cff549cfb.tar gsoc2013-empathy-10a93b8c864c38dacc49a9f33b7ebf0cff549cfb.tar.gz gsoc2013-empathy-10a93b8c864c38dacc49a9f33b7ebf0cff549cfb.tar.bz2 gsoc2013-empathy-10a93b8c864c38dacc49a9f33b7ebf0cff549cfb.tar.lz gsoc2013-empathy-10a93b8c864c38dacc49a9f33b7ebf0cff549cfb.tar.xz gsoc2013-empathy-10a93b8c864c38dacc49a9f33b7ebf0cff549cfb.tar.zst gsoc2013-empathy-10a93b8c864c38dacc49a9f33b7ebf0cff549cfb.zip |
Renamed empathy_contact_list_view_get_selected to empathy_contact_list_view_dup_selected and fixed leaks.
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
Diffstat (limited to 'megaphone')
-rw-r--r-- | megaphone/src/megaphone-applet.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/megaphone/src/megaphone-applet.c b/megaphone/src/megaphone-applet.c index b58255fc2..0879e75a5 100644 --- a/megaphone/src/megaphone-applet.c +++ b/megaphone/src/megaphone-applet.c @@ -221,7 +221,7 @@ megaphone_applet_preferences_response_cb (GtkWidget *dialog, /* Retrieve the selected contact, if any and set it up in gconf. * GConf will notify us from the change and we will adjust ourselves */ contact_list = g_object_get_data (G_OBJECT (dialog), "contact-list"); - contact = empathy_contact_list_view_get_selected (contact_list); + contact = empathy_contact_list_view_dup_selected (contact_list); if (contact) { McAccount *account; const gchar *account_id; @@ -240,6 +240,7 @@ megaphone_applet_preferences_response_cb (GtkWidget *dialog, "contact_id", str, NULL); g_free (str); + g_object_unref (contact); } } gtk_widget_destroy (dialog); |