diff --git a/src/servers/app/font/FontManager.cpp b/src/servers/app/font/FontManager.cpp index 221e4c7e34..69d3f8cd65 100644 --- a/src/servers/app/font/FontManager.cpp +++ b/src/servers/app/font/FontManager.cpp @@ -67,7 +67,7 @@ FontManagerBase::FontManagerBase(bool init_freetype, const char* className) FontManagerBase::~FontManagerBase() { for (int32 i = fFamilies.CountItems(); i-- > 0;) - delete fFamilies.ItemAt(i); + delete fFamilies.RemoveItemAt(i); fStyleHashTable.Clear();