changeset 19083:5b8035030053

- Comment on NSS's refcounting prowess
author William Ehlhardt <williamehlhardt@gmail.com>
date Fri, 10 Aug 2007 03:51:49 +0000
parents ddb5ad55f2d2
children 344fc06139b4
files libpurple/plugins/ssl/ssl-nss.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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);
 }