fix for 140484: tagStr incorrectly freed in nsListCommand::GetCurrentState; r=jfrancis; sr=kin; ceckin in on behalf of Dan McGuirk

git-svn-id: svn://10.0.0.236/trunk@121868 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
jfrancis%netscape.com 2002-05-20 10:48:31 +00:00
parent 93f2ce40bf
commit 42b40ed3ca

View File

@ -1806,6 +1806,11 @@ PasteAsQuotation(nsIEditor *aEditor, PRInt32 aSelectionType)
nsresult
GetListState(nsIEditor *aEditor, PRBool *aMixed, PRUnichar **_retval)
{
if (!aMixed || !_retval || !aEditor)
return NS_ERROR_NULL_POINTER;
*_retval = nsnull;
*aMixed = PR_FALSE;
nsCOMPtr<nsIHTMLEditor> htmlEditor = do_QueryInterface(aEditor);
nsresult err = NS_ERROR_NO_INTERFACE;
if (htmlEditor)