Bug 385600 Fix nsPluginInstanceOwner allocator mismatches r+sr=jst

This commit is contained in:
Neil Rashbrook 2009-04-05 13:57:07 +01:00
parent 52721de1e5
commit 7689e2520b

View File

@ -2254,12 +2254,12 @@ nsPluginInstanceOwner::~nsPluginInstanceOwner()
for (cnt = 0; cnt < (mNumCachedAttrs + 1 + mNumCachedParams); cnt++) {
if (mCachedAttrParamNames && mCachedAttrParamNames[cnt]) {
PR_Free(mCachedAttrParamNames[cnt]);
NS_Free(mCachedAttrParamNames[cnt]);
mCachedAttrParamNames[cnt] = nsnull;
}
if (mCachedAttrParamValues && mCachedAttrParamValues[cnt]) {
PR_Free(mCachedAttrParamValues[cnt]);
NS_Free(mCachedAttrParamValues[cnt]);
mCachedAttrParamValues[cnt] = nsnull;
}
}