Bug 530812 Mismatched allocators in jsd: PR_Calloc vs delete, r=biesi

This commit is contained in:
timeless@mozdev.org 2009-12-13 09:11:39 -08:00
parent 9f42a36dbb
commit 8f9f71259b

View File

@ -245,10 +245,10 @@ jsds_RemoveEphemeral (LiveEphemeral **listHead, LiveEphemeral *item)
* utility functions for filters
*******************************************************************************/
void
jsds_FreeFilter (FilterRecord *filter)
jsds_FreeFilter (FilterRecord *rec)
{
NS_IF_RELEASE (filter->filterObject);
delete filter;
NS_IF_RELEASE (rec->filterObject);
PR_Free (rec);
}
/* copies appropriate |filter| attributes into |rec|.