summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBeniamino Galvani <bgalvani@redhat.com>2016-12-22 18:10:55 +0100
committerBeniamino Galvani <bgalvani@redhat.com>2016-12-22 18:10:55 +0100
commit38deac70b4c7ad0c44dd9f1490afb2ab7d7d8770 (patch)
tree634bdeae62e91af1f6a06d3277076fe247aa3c7d
parente849903ae5bdd7643330042f29554b082bbaa6f4 (diff)
downloadnetwork-manager-applet-bg/wireless-security-leaks-bgo750261.tar.gz
wireless-security: disconnect all handlers upon EAPMethodLEAP destroybg/wireless-security-leaks-bgo750261
-rw-r--r--src/wireless-security/eap-method-leap.c10
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 2448df29..e4025a35 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 *