- /* We didn't match. Look for the application's FcObjectTypeList
- * and replace it in-place. */
- for (l = _FcObjectTypes; l; l = l->next)
- {
- if (l->types == _FcUserObjectNames)
- break;
- }
-
- replace = l && l->types == _FcUserObjectNames;
- if (!_FcUserObjectNames ||
- (replace && user_obj_alloc <= l->ntypes))
- {
- int nt = user_obj_alloc + 4;
- FcObjectType * tt = realloc (_FcUserObjectNames,
- nt * sizeof (FcObjectType));
- if (!tt)
- return 0;
- _FcUserObjectNames = tt;
- user_obj_alloc = nt;
- }
-
- if (replace)
- {
- n = l->ntypes;
- FcNameUnregisterObjectTypesFree (l->types, l->ntypes, FcFalse);
- }
- else
- n = 0;