mirror of
https://gitlab.freedesktop.org/freetype/freetype.git
synced 2026-05-03 18:27:59 +02:00
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.
This commit is contained in:
parent
5fe94ff636
commit
e97cb9127d
1 changed files with 3 additions and 0 deletions
|
|
@ -297,7 +297,10 @@
|
|||
FT_EXPORT_FUNC( void ) FT_Done_Stream( FT_Stream stream )
|
||||
{
|
||||
if ( stream && stream->close )
|
||||
{
|
||||
stream->close( stream );
|
||||
stream->close = 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue