From 8b0f48a5b18ea066cb232506e5c5ac847567b226 Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Tue, 15 Dec 2009 18:19:59 +0100 Subject: [PATCH] Fix memory corruption in SoupPasswordManagerGNOME Debugged by Gustavo Noronha Silva, https://bugzilla.gnome.org/show_bug.cgi?id=595554 --- libsoup/soup-password-manager-gnome.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/libsoup/soup-password-manager-gnome.c b/libsoup/soup-password-manager-gnome.c index d376191..ae65564 100644 --- a/libsoup/soup-password-manager-gnome.c +++ b/libsoup/soup-password-manager-gnome.c @@ -113,6 +113,13 @@ update_auth_for_passwords (SoupAuth *auth, SoupMessage *msg, passwords = passwords->next; } + uri = g_object_get_data (G_OBJECT (auth), + "SoupPasswordManagerGNOME-save_password-uri"); + if (uri) { + g_signal_handlers_disconnect_by_func (auth, async_save_password, uri); + g_signal_handlers_disconnect_by_func (auth, sync_save_password, uri); + } + uri = soup_uri_copy (soup_message_get_uri (msg)); g_signal_connect (auth, "save_password", G_CALLBACK (async ? async_save_password : sync_save_password), -- 2.7.4