ref: e97cb9127dbc8a10d07209aee679a0717346f1f6
parent: 5fe94ff636fd3b925c775565cc380fd07d3cf26b
author: Just van Rossum <[email protected]>
date: Thu Jul 27 23:13:31 EDT 2000
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.
--- 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;
+ }
}