diff --git a/src/apps/charactermap/CharacterWindow.cpp b/src/apps/charactermap/CharacterWindow.cpp index 77964c0edc..fe67686d4e 100644 --- a/src/apps/charactermap/CharacterWindow.cpp +++ b/src/apps/charactermap/CharacterWindow.cpp @@ -544,12 +544,12 @@ void CharacterWindow::_UpdateFontMenu(BMenu* menu) { BMenuItem* item; - + while (menu->CountItems() > 0) { - item = menu->RemoveItem(static_cast(0)); + item = menu->RemoveItem(static_cast(0)); delete(item); - } - + } + font_family currentFamily; font_style currentStyle; fCharacterView->CharacterFont().GetFamilyAndStyle(¤tFamily,