NSS_CMSContentInfo_Destroy()
- The patch destroys the digest context member of the CMSContentInfo. It calls the previously unused function NSS_CMSDigestContext_Cancel to destroy the digest context. Eliminates an object reference leak. Bugscape bug 54208, r=relyea git-svn-id: svn://10.0.0.236/trunk@150002 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -34,7 +34,7 @@
|
||||
/*
|
||||
* CMS contentInfo methods.
|
||||
*
|
||||
* $Id: cmscinfo.c,v 1.4 2003-11-18 06:16:25 nelsonb%netscape.com Exp $
|
||||
* $Id: cmscinfo.c,v 1.5 2003-12-04 00:39:24 nelsonb%netscape.com Exp $
|
||||
*/
|
||||
|
||||
#include "cmslocal.h"
|
||||
@@ -76,6 +76,11 @@ NSS_CMSContentInfo_Destroy(NSSCMSContentInfo *cinfo)
|
||||
/* XXX Anything else that needs to be "manually" freed/destroyed? */
|
||||
break;
|
||||
}
|
||||
if (cinfo->digcx) {
|
||||
/* must destroy digest objects */
|
||||
NSS_CMSDigestContext_Cancel(cinfo->digcx);
|
||||
cinfo->digcx = NULL;
|
||||
}
|
||||
if (cinfo->bulkkey)
|
||||
PK11_FreeSymKey(cinfo->bulkkey);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user