diff options
Diffstat (limited to 'src/base/ftinit.c')
-rw-r--r-- | src/base/ftinit.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/base/ftinit.c b/src/base/ftinit.c index 0acc75e46..c4de2f3d4 100644 --- a/src/base/ftinit.c +++ b/src/base/ftinit.c @@ -201,6 +201,10 @@ FT_Error error; 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' */ @@ -248,6 +252,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; } |