summaryrefslogtreecommitdiff
path: root/pl/pllfont.c
diff options
context:
space:
mode:
authorHenry Stiles <henry.stiles@artifex.com>2012-01-17 14:45:50 -0700
committerHenry Stiles <henry.stiles@artifex.com>2012-01-18 12:38:41 -0700
commitb3e60553237af409e4d23d5c8dd39eb136665752 (patch)
tree336b961a01cf5c369726cffa6f1811a3e3a8b19b /pl/pllfont.c
parent5ad194fca3c799f3928d714567a17c5d8361a424 (diff)
Close PCL font files after initial read.
Upon startup PCL reads all the font files to gather attribute information but the files were being left open wasting file handles. This change closes the files.
Diffstat (limited to 'pl/pllfont.c')
-rw-r--r--pl/pllfont.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/pl/pllfont.c b/pl/pllfont.c
index 1a077de8d..537992fc5 100644
--- a/pl/pllfont.c
+++ b/pl/pllfont.c
@@ -322,6 +322,7 @@ pl_load_built_in_fonts(const char *pathname, gs_memory_t *mem,
found = true;
found_any = true;
}
+ sfclose(in);
/* nothing found */
if (!found) {