When building a node's children, make sure to clear out any old children first. Bug 318432, r=annie

This commit is contained in:
bryner%brianryner.com 2005-11-30 23:12:15 +00:00
Родитель d8a541b766
Коммит 9f5d0820d6
1 изменённых файлов: 1 добавлений и 0 удалений

Просмотреть файл

@ -269,6 +269,7 @@ nsNavHistoryQueryNode::BuildChildren()
NS_STATIC_CAST(nsNavHistoryResult*, NS_STATIC_CAST(nsINavHistoryResult*,
iResult));
mChildren.Clear();
NS_ENSURE_TRUE(mChildren.AppendObjects(*(result->GetTopLevel())),
NS_ERROR_OUT_OF_MEMORY);