[gnome-initial-setup] account: Fix two segfaults in dispose
- From: Michael Wood <mwood src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-initial-setup] account: Fix two segfaults in dispose
- Date: Mon, 20 May 2013 15:20:59 +0000 (UTC)
commit a2a6d134ad6b3a36c36e038e296cab3d0e4d2e59
Author: Michael Wood <michael g wood intel com>
Date: Mon May 20 15:55:42 2013 +0100
account: Fix two segfaults in dispose
- Don't unref transfer-none accountservice objects
- Make sure we don't run the realmd disappeared callback
https://bugzilla.gnome.org/show_bug.cgi?id=700376
.../pages/account/gis-account-page.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gnome-initial-setup/pages/account/gis-account-page.c
b/gnome-initial-setup/pages/account/gis-account-page.c
index f06ab4c..f3e829d 100644
--- a/gnome-initial-setup/pages/account/gis-account-page.c
+++ b/gnome-initial-setup/pages/account/gis-account-page.c
@@ -972,8 +972,8 @@ gis_account_page_dispose (GObject *object)
GisAccountPage *page = GIS_ACCOUNT_PAGE (object);
GisAccountPagePrivate *priv = page->priv;
- g_clear_object (&priv->act_user);
- g_clear_object (&priv->act_client);
+ if (priv->realm_manager && priv->realmd_watch)
+ g_bus_unwatch_name (priv->realmd_watch);
g_clear_object (&priv->realm_manager);
g_clear_object (&priv->action);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]