bug 348669. Remove inappropriate nsCRT::free usage. r=timeless, sr=dbaron

git-svn-id: svn://10.0.0.236/trunk@209419 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
sayrer%gmail.com
2006-09-08 04:35:17 +00:00
parent 70578e6cf7
commit 4b8ca2af78
27 changed files with 51 additions and 52 deletions

View File

@@ -1389,7 +1389,7 @@ NS_IMETHODIMP nsHTMLEditor::InsertFromTransferable(nsITransferable *transferable
rv = NS_ERROR_NOT_IMPLEMENTED; // for now give error code
}
}
nsCRT::free(bestFlavor);
NS_Free(bestFlavor);
// Try to scroll the selection into view if the paste/drop succeeded
if (NS_SUCCEEDED(rv))
@@ -2055,7 +2055,7 @@ NS_IMETHODIMP nsHTMLEditor::PasteAsPlaintextQuotation(PRInt32 aSelectionType)
rv = InsertAsPlaintextQuotation(stuffToPaste, PR_TRUE, 0);
}
}
nsCRT::free(flav);
NS_Free(flav);
}
return rv;
@@ -2670,7 +2670,7 @@ void nsHTMLEditor::FreeTagStackStrings(nsVoidArray &tagStack)
{
PRUnichar* str = (PRUnichar*)tagStack.ElementAt(i);
if (str) {
nsCRT::free(str);
NS_Free(str);
}
}
}