/*
- **********************************************************************
- * Copyright (C) 2003, International Business Machines
+ *************************************************************************
+ * © 2016 and later: Unicode, Inc. and others.
+ * License & terms of use: http://www.unicode.org/copyright.html#License
+ *************************************************************************
+ *************************************************************************
+ * Copyright (C) 2003 - 2008, International Business Machines
* Corporation and others. All Rights Reserved.
- **********************************************************************
+ *************************************************************************
*/
#include "layout/LETypes.h"
FontTableCache::~FontTableCache()
{
for (int i = fTableCacheCurr - 1; i >= 0; i -= 1) {
- LE_DELETE_ARRAY(fTableCache[i].table);
+ freeFontTable(fTableCache[i].table);
fTableCache[i].tag = 0;
fTableCache[i].table = NULL;
fTableCache = NULL;
}
+void FontTableCache::freeFontTable(const void *table) const
+{
+ LE_DELETE_ARRAY(table);
+}
+
const void *FontTableCache::find(LETag tableTag) const
{
for (int i = 0; i < fTableCacheCurr; i += 1) {