Dix: Re-ebable ErrorF reporting of incorrect refcount in FreeFontPath

(cherry picked from commit c362d829a6829367621faedc9ad7e10549ab64dc)
This commit is contained in:
Jeremy Huddleston 2007-11-20 16:02:02 -08:00
parent 96c113724a
commit a842d8a85d

View file

@ -1632,9 +1632,9 @@ FreeFontPath(FontPathElementPtr *list, int n, Bool force)
found++;
}
if (list[i]->refcount != found) {
/* ErrorF("FreeFontPath: FPE \"%.*s\" refcount is %d, should be %d; fixing.\n",
ErrorF("FreeFontPath: FPE \"%.*s\" refcount is %d, should be %d; fixing.\n",
list[i]->name_length, list[i]->name,
list[i]->refcount, found); */
list[i]->refcount, found);
list[i]->refcount = found; /* ensure it will get freed */
}
}