freetype-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[freetype2] master efa1a35: * builds/windows/ftsystem.c (FT_Stream_Open)


From: Werner Lemberg
Subject: [freetype2] master efa1a35: * builds/windows/ftsystem.c (FT_Stream_Open): Fix double-close.
Date: Mon, 30 Aug 2021 09:41:16 -0400 (EDT)

branch: master
commit efa1a35907ec678186e0828a78e6d1ee96896404
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Commit: Alexei Podtelezhnikov <apodtele@gmail.com>

    * builds/windows/ftsystem.c (FT_Stream_Open): Fix double-close.
---
 builds/windows/ftsystem.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/builds/windows/ftsystem.c b/builds/windows/ftsystem.c
index 65c37aa..40b51eb 100644
--- a/builds/windows/ftsystem.c
+++ b/builds/windows/ftsystem.c
@@ -288,7 +288,7 @@
       {
         FT_ERROR(( "FT_Stream_Open:" ));
         FT_ERROR(( " could not `alloc' memory\n" ));
-        goto Fail_Map;
+        goto Fail_Open;
       }
 
       total_read_count = 0;
@@ -330,9 +330,6 @@
   Fail_Read:
     ft_free( NULL, stream->base );
 
-  Fail_Map:
-    CloseHandle( file );
-
   Fail_Open:
     CloseHandle( file );
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]