]> git.wh0rd.org - fontconfig.git/blobdiff - src/fcfreetype.c
Fix memory leak (Coverity defect #2089).
[fontconfig.git] / src / fcfreetype.c
index 5d852a508bf210ceaf12f9a3a9bac469cd4ce721..87f3b999e2a663ea947066e76f80120b41893de2 100644 (file)
@@ -2797,13 +2797,10 @@ GetScriptTags(FT_Face face, FT_ULong tabletag, FT_ULong **stags, FT_UShort *scri
 
        cur_offset = ftglue_stream_pos( stream );
 
-       if (( error = ftglue_stream_seek( stream, new_offset ) ))
-           goto Fail;
+       error = ftglue_stream_seek( stream, new_offset );
 
        if ( error == TT_Err_Ok )
            p++;
-       else if ( error != TTO_Err_Empty_Script )
-           goto Fail;
 
        (void)ftglue_stream_seek( stream, cur_offset );
     }