changeset 23909:48958ca5abad

Close notify and request dialogs with PurpleSslConnection as handle. This fixes crashes with the Accept/Reject Certificate dialog after an account is disabled. It only works because the NSS and GnuTLS plugins pass the sslconn as their callback data, and the certificate code uses that data as the handle. Not sure, but I still think this will leak PurpleCertificateVerificationRequest's though because there doesn't seem to be anyone hanging on to them.
author Elliott Sales de Andrade <qulogic@pidgin.im>
date Mon, 18 Aug 2008 01:00:58 +0000
parents 3f0b3c31a015
children ca3dc911bf52
files libpurple/sslconn.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/sslconn.c	Sun Aug 17 21:27:00 2008 +0000
+++ b/libpurple/sslconn.c	Mon Aug 18 01:00:58 2008 +0000
@@ -27,6 +27,7 @@
 
 #include "certificate.h"
 #include "debug.h"
+#include "request.h"
 #include "sslconn.h"
 
 static gboolean _ssl_initialized = FALSE;
@@ -227,6 +228,9 @@
 
 	g_return_if_fail(gsc != NULL);
 
+	purple_request_close_with_handle(gsc);
+	purple_notify_close_with_handle(gsc);
+
 	ops = purple_ssl_get_ops();
 	(ops->close)(gsc);