diff -r 7c90e6132015 -r 10e98eab6f85 webengine/webkitutils/HistoryProvider/HistoryController.cpp --- a/webengine/webkitutils/HistoryProvider/HistoryController.cpp Fri May 08 08:25:06 2009 +0300 +++ b/webengine/webkitutils/HistoryProvider/HistoryController.cpp Fri Jul 03 15:54:40 2009 +0100 @@ -56,7 +56,7 @@ HistoryController::~HistoryController() { - clearHistoryList(); + m_historyStack.ResetAndDestroy(); } /** @@ -229,6 +229,7 @@ delete deadEntry; } } + m_currentIndex = (m_currentIndex != -1) ? 0: m_currentIndex ; m_tempCurrentIndex = m_currentIndex; m_historyLoadOffset = 0;