Stupid stupid MSVC. Fix Win build bustage. r/a=me

git-svn-id: svn://10.0.0.236/trunk@235709 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
rjc%netscape.com 2007-09-12 17:48:34 +00:00
parent d5ce400b72
commit 3c0f6e01fd

View File

@ -1034,9 +1034,9 @@ BookmarkParser::ParseBookmarkInfo(BookmarkField *fields, PRBool isBookmarkFlag,
}
// free up any allocated data in field table BEFORE processing
for (BookmarkField *field = fields; field->mName; ++field)
for (BookmarkField *preField = fields; preField->mName; ++preField)
{
NS_IF_RELEASE(field->mValue);
NS_IF_RELEASE(preField->mValue);
}
// loop over attributes
@ -1215,9 +1215,9 @@ BookmarkParser::ParseBookmarkInfo(BookmarkField *fields, PRBool isBookmarkFlag,
}
// free up any allocated data in field table AFTER processing
for (BookmarkField *field = fields; field->mName; ++field)
for (BookmarkField *postField = fields; postField->mName; ++postField)
{
NS_IF_RELEASE(field->mValue);
NS_IF_RELEASE(postField->mValue);
}
return(NS_OK);