mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 14:22:01 +00:00
Bug 530812 Mismatched allocators in jsd: PR_Calloc vs delete, r=biesi
This commit is contained in:
parent
9f42a36dbb
commit
8f9f71259b
@ -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|.
|
||||
|
Loading…
Reference in New Issue
Block a user