Switched to new DoublyLinkedList class.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11191 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -155,7 +155,8 @@ Menu::~Menu()
|
||||
// take all remaining items with us
|
||||
|
||||
MenuItem *item;
|
||||
while ((item = fItems.RemoveHead()) != NULL) {
|
||||
while ((item = fItems.Head()) != NULL) {
|
||||
fItems.Remove(item);
|
||||
delete item;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user