Replace delete[] for char* data with nsCRT::free().

This commit is contained in:
bruce%cybersight.com 1999-09-03 07:20:03 +00:00
parent 2239643aca
commit 17430c7c3c
2 changed files with 2 additions and 2 deletions

View File

@ -476,7 +476,7 @@ nsresult nsEventListenerManager::AddScriptEventListener(nsIScriptContext* aConte
if (nsnull != mCharName) {
JS_CompileUCFunctionForPrincipals(mJSContext, mScriptObject, jsprin, mCharName,
1, mEventArgv, (jschar*)aFunc.GetUnicode(), aFunc.Length(), nsnull, 0);
delete[] mCharName;
nsCRT::free(mCharName);
JSPRINCIPALS_DROP(mJSContext, jsprin);
return SetJSEventListener(aContext, mScriptObject, aIID);
}

View File

@ -476,7 +476,7 @@ nsresult nsEventListenerManager::AddScriptEventListener(nsIScriptContext* aConte
if (nsnull != mCharName) {
JS_CompileUCFunctionForPrincipals(mJSContext, mScriptObject, jsprin, mCharName,
1, mEventArgv, (jschar*)aFunc.GetUnicode(), aFunc.Length(), nsnull, 0);
delete[] mCharName;
nsCRT::free(mCharName);
JSPRINCIPALS_DROP(mJSContext, jsprin);
return SetJSEventListener(aContext, mScriptObject, aIID);
}