[network-manager-applet/bg/wireless-security-leaks-bgo750261: 4/4] wireless-security: disconnect all handlers upon EAPMethodLEAP destroy
- From: Beniamino Galvani <bgalvani src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [network-manager-applet/bg/wireless-security-leaks-bgo750261: 4/4] wireless-security: disconnect all handlers upon EAPMethodLEAP destroy
- Date: Thu, 22 Dec 2016 17:12:35 +0000 (UTC)
commit 38deac70b4c7ad0c44dd9f1490afb2ab7d7d8770
Author: Beniamino Galvani <bgalvani redhat com>
Date: Thu Dec 22 18:10:55 2016 +0100
wireless-security: disconnect all handlers upon EAPMethodLEAP destroy
src/wireless-security/eap-method-leap.c | 10 ++++------
1 files changed, 4 insertions(+), 6 deletions(-)
---
diff --git a/src/wireless-security/eap-method-leap.c b/src/wireless-security/eap-method-leap.c
index 2448df2..e4025a3 100644
--- a/src/wireless-security/eap-method-leap.c
+++ b/src/wireless-security/eap-method-leap.c
@@ -176,13 +176,11 @@ destroy (EAPMethod *parent)
widget = GTK_WIDGET (gtk_builder_get_object (parent->builder, "eap_leap_notebook"));
g_assert (widget);
+ g_signal_handlers_disconnect_by_data (widget, method);
- g_signal_handlers_disconnect_by_func (G_OBJECT (widget),
- (GCallback) widgets_realized,
- method);
- g_signal_handlers_disconnect_by_func (G_OBJECT (widget),
- (GCallback) widgets_unrealized,
- method);
+ g_signal_handlers_disconnect_by_data (method->username_entry, method->ws_parent);
+ g_signal_handlers_disconnect_by_data (method->password_entry, method->ws_parent);
+ g_signal_handlers_disconnect_by_data (method->show_password, method);
}
EAPMethodLEAP *
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]