From a8bcdf8ef6ecd1e6c8da655f9742f687e0892f49 Mon Sep 17 00:00:00 2001 From: David Turner Date: Tue, 2 May 2000 10:51:41 +0000 Subject: [PATCH] added FT_Done_Stream --- src/base/ftobjs.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/base/ftobjs.c b/src/base/ftobjs.c index a2db0196c..08e898346 100644 --- a/src/base/ftobjs.c +++ b/src/base/ftobjs.c @@ -279,11 +279,19 @@ /*************************************************************************/ /* */ /* */ - /* ft_done_stream */ + /* FT_Done_Stream */ /* */ /* */ /* Closes and destroys a stream object. */ /* */ + EXPORT_FUNC + void FT_Done_Stream( FT_Stream stream ) + { + if ( stream->close ) + stream->close( stream ); + } + + static void ft_done_stream( FT_Stream* astream ) { @@ -297,8 +305,6 @@ *astream = 0; } - - /*************************************************************************/ /*************************************************************************/ /*************************************************************************/