# HG changeset patch # User Elliott Sales de Andrade # Date 1219021258 0 # Node ID 48958ca5abad146ed9c4cee11a83421bf5b3deaa # Parent 3f0b3c31a015f5df43d595612f0e0baef5b6b625 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. diff -r 3f0b3c31a015 -r 48958ca5abad libpurple/sslconn.c --- 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);