Mercurial > pidgin
changeset 19202:c0949e081f43
- Write the uninit function for x509_ca
author | William Ehlhardt <williamehlhardt@gmail.com> |
---|---|
date | Mon, 13 Aug 2007 05:35:06 +0000 |
parents | 73d8dd2169c4 |
children | 6034b8db9dc1 |
files | libpurple/certificate.c |
diffstat | 1 files changed, 13 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libpurple/certificate.c Mon Aug 13 05:29:22 2007 +0000 +++ b/libpurple/certificate.c Mon Aug 13 05:35:06 2007 +0000 @@ -712,7 +712,19 @@ static void x509_ca_uninit(void) { - + GList *l; + + for (l = x509_ca_certs; l; l = l->next) { + x509_ca_element *el = l->data; + + /* TODO: Make this its own function */ + g_free(el->dn); + purple_certificate_destroy(el->crt); + g_free(el); + } + g_list_free(x509_ca_certs); + x509_ca_certs = NULL; + x509_ca_initialized = FALSE; } static gboolean