From f421261d9cc1a9938c8eadc32d5c068682eee311 Mon Sep 17 00:00:00 2001 From: Just van Rossum Date: Fri, 28 Jul 2000 03:13:31 +0000 Subject: [PATCH] FT_Done_Stream(): do stream->close = 0 after calling stream->close(); this makes it safe to call FT_Done_Stream() more than once. David: please review this; I hope you agree with this minor change. --- src/base/ftobjs.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/base/ftobjs.c b/src/base/ftobjs.c index 903856b5c..85b755ce2 100644 --- a/src/base/ftobjs.c +++ b/src/base/ftobjs.c @@ -297,7 +297,10 @@ FT_EXPORT_FUNC( void ) FT_Done_Stream( FT_Stream stream ) { if ( stream && stream->close ) + { stream->close( stream ); + stream->close = 0; + } }