# HG changeset patch # User William Ehlhardt # Date 1186717909 0 # Node ID 5b8035030053efee6d05e4882d88b13df962f0c4 # Parent ddb5ad55f2d2a1b9d19f4105d9309d3726e3a2e5 - Comment on NSS's refcounting prowess diff -r ddb5ad55f2d2 -r 5b8035030053 libpurple/plugins/ssl/ssl-nss.c --- a/libpurple/plugins/ssl/ssl-nss.c Wed Aug 08 04:53:36 2007 +0000 +++ b/libpurple/plugins/ssl/ssl-nss.c Fri Aug 10 03:51:49 2007 +0000 @@ -427,6 +427,7 @@ /* Create the certificate copy */ newcrt = g_new0(PurpleCertificate, 1); newcrt->scheme = &x509_nss; + /* NSS does refcounting automatically */ newcrt->data = CERT_DupCertificate(crt_dat); return newcrt; @@ -452,6 +453,7 @@ g_return_if_fail(crt_dat); /* Finally we have the certificate. So let's kill it */ + /* NSS does refcounting automatically */ CERT_DestroyCertificate(crt_dat); }