fix for 140484: tagStr incorrectly freed in nsListCommand::GetCurrentState; r=jfrancis; sr=kin; checkin in on behalf of Dan McGuirk; has adt and driver approval for branch landing

git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@124337 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
jfrancis%netscape.com
2002-06-29 00:56:15 +00:00
parent ccfd0b4ed3
commit 8210c82fbf

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)