зеркало из https://github.com/mozilla/gecko-dev.git
When building a node's children, make sure to clear out any old children first. Bug 318432, r=annie
This commit is contained in:
Родитель
d8a541b766
Коммит
9f5d0820d6
|
@ -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);
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче