Adapted to new external stream semantics.
This commit is contained in:
parent
08d78b62e3
commit
5fe94ff636
|
@ -468,9 +468,13 @@ Error:
|
||||||
args.driver = FT_Get_Module( library, driver_name );
|
args.driver = FT_Get_Module( library, driver_name );
|
||||||
}
|
}
|
||||||
error = FT_Open_Face( library, &args, face_index, aface );
|
error = FT_Open_Face( library, &args, face_index, aface );
|
||||||
if ( !error )
|
if ( error == FT_Err_Ok )
|
||||||
(*aface)->face_flags &= ~FT_FACE_FLAG_EXTERNAL_STREAM;
|
(*aface)->face_flags &= ~FT_FACE_FLAG_EXTERNAL_STREAM;
|
||||||
FREE( stream ); /* FT_Open_Face() made a copy */
|
else
|
||||||
|
{
|
||||||
|
FT_Done_Stream( stream );
|
||||||
|
FREE( stream );
|
||||||
|
}
|
||||||
return error;
|
return error;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue