Seamonkey-only bustage from bug 347183 - I'm currently building a tree with this, but it should be right

git-svn-id: svn://10.0.0.236/trunk@235903 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
benjamin%smedbergs.us
2007-09-12 17:51:48 +00:00
parent f5c5b60a42
commit 8a69bea01d

View File

@@ -4439,13 +4439,7 @@ nsBookmarksService::GetAllCmds(nsIRDFResource* source,
// always append a separator last (due to aggregation of commands from multiple datasources)
cmdArray->AppendElement(kNC_BookmarkSeparator);
nsISimpleEnumerator *result = new nsArrayEnumerator(cmdArray);
if (!result)
return NS_ERROR_OUT_OF_MEMORY;
NS_ADDREF(result);
*commands = result;
return NS_OK;
return NS_NewArrayEnumerator(commands, cmdArray);
}
NS_IMETHODIMP