diff --git a/toolkit/components/places/src/nsNavHistoryResult.cpp b/toolkit/components/places/src/nsNavHistoryResult.cpp index 595d489e9cb9..df85f422abce 100644 --- a/toolkit/components/places/src/nsNavHistoryResult.cpp +++ b/toolkit/components/places/src/nsNavHistoryResult.cpp @@ -472,7 +472,7 @@ nsNavHistoryContainerResultNode::ReverseUpdateStats(PRInt32 aAccessCountChange) SortComparator comparator = GetSortingComparator(sortMode); int ourIndex = mParent->FindChild(this); - if (DoesChildNeedResorting(ourIndex, comparator)) { + if (mParent->DoesChildNeedResorting(ourIndex, comparator)) { // prevent us from being destroyed when removed from the parent nsRefPtr ourLock = this; nsNavHistoryContainerResultNode* ourParent = mParent;