[empathy/gnome-2-28] Make sure the account manager is completely unreffed when exiting
- From: Sjoerd Simons <sjoerds src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [empathy/gnome-2-28] Make sure the account manager is completely unreffed when exiting
- Date: Wed, 14 Oct 2009 17:18:19 +0000 (UTC)
commit c713d54a46ca7c3e82abfbad51c4008a8894c529
Author: Sjoerd Simons <sjoerd simons collabora co uk>
Date: Wed Oct 14 11:25:12 2009 -0400
Make sure the account manager is completely unreffed when exiting
src/empathy.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/src/empathy.c b/src/empathy.c
index c80953e..4b5c432 100644
--- a/src/empathy.c
+++ b/src/empathy.c
@@ -492,6 +492,8 @@ show_accounts_ui (GtkWindow *window)
g_signal_connect (manager, "notify::ready",
G_CALLBACK (account_manager_ready_for_accounts_cb), window);
}
+
+ g_object_unref (manager);
}
static UniqueResponse
@@ -887,11 +889,13 @@ main (int argc, char *argv[])
if (account_dialog_only)
{
+ account_manager = empathy_account_manager_dup_singleton ();
show_accounts_ui (NULL);
gtk_main ();
- return 0;
+ g_object_unref (account_manager);
+ return 0;
}
notify_init (_(PACKAGE_NAME));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]