[gnome-control-center/gnome-3-10] user-accounts: fix crash when network changes
- From: Ondrej Holy <oholy src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center/gnome-3-10] user-accounts: fix crash when network changes
- Date: Tue, 6 Jan 2015 11:28:15 +0000 (UTC)
commit 4d5318baa6c3ea9581056246e918920cb29572c6
Author: Ondrej Holy <oholy redhat com>
Date: Tue Jan 6 09:53:54 2015 +0100
user-accounts: fix crash when network changes
Add user dialog crashes if it has been closed and network configuration
changes, because the dialog is already disposed, but on_network_changes
callback is executed. To fix this crash network monitor signal handler
has to be disconnected on dispose.
https://bugzilla.gnome.org/show_bug.cgi?id=742439
panels/user-accounts/um-account-dialog.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/panels/user-accounts/um-account-dialog.c b/panels/user-accounts/um-account-dialog.c
index 8feaca0..2205f80 100644
--- a/panels/user-accounts/um-account-dialog.c
+++ b/panels/user-accounts/um-account-dialog.c
@@ -1342,7 +1342,7 @@ enterprise_init (UmAccountDialog *self,
self, NULL);
monitor = g_network_monitor_get_default ();
- g_signal_connect (monitor, "network-changed", G_CALLBACK (on_network_changed), self);
+ g_signal_connect_object (monitor, "network-changed", G_CALLBACK (on_network_changed), self, 0);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]