summaryrefslogtreecommitdiff
path: root/src/base/ftinit.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/base/ftinit.c')
-rw-r--r--src/base/ftinit.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/base/ftinit.c b/src/base/ftinit.c
index 0acc75e46..24d5dc710 100644
--- a/src/base/ftinit.c
+++ b/src/base/ftinit.c
@@ -202,6 +202,11 @@
FT_Memory memory;
+ /* If logging is enabled initialize the FILE* */
+#ifdef FT_LOGGING
+ ft_logging_init();
+#endif /* FT_LOGGING */
+
/* check of `alibrary' delayed to `FT_New_Library' */
/* First of all, allocate a new system object -- this function is part */
@@ -248,6 +253,11 @@
/* discard memory manager */
FT_Done_Memory( memory );
+ /* If logging is enabled we need to close the FILE* */
+#ifdef FT_LOGGING
+ ft_logging_deinit();
+#endif /* FT_LOGGING */
+
return FT_Err_Ok;
}