summaryrefslogtreecommitdiff
path: root/src/base/ftobjs.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/base/ftobjs.c')
-rw-r--r--src/base/ftobjs.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/base/ftobjs.c b/src/base/ftobjs.c
index ecd99af01..64bc0beee 100644
--- a/src/base/ftobjs.c
+++ b/src/base/ftobjs.c
@@ -1240,14 +1240,15 @@
goto Success;
if ( error != FT_Err_Unknown_File_Format )
- goto Fail;
+ goto Fail2;
}
}
- ft_done_stream( &stream, external_stream );
-
/* no driver is able to handle this format */
error = FT_Err_Unknown_File_Format;
+
+ Fail2:
+ ft_done_stream( &stream, external_stream );
goto Fail;
}