mirror of
https://gitlab.freedesktop.org/freetype/freetype.git
synced 2026-05-09 05:08:03 +02:00
[truetype] Small fix in the incremental interface.
Fixes #1299, last [-Wdangling-pointer=] warning. * src/truetype/ttgload.c (load_truetype_glyph): Restore original stream on exit.
This commit is contained in:
parent
508c30e086
commit
6bd5a8cc78
1 changed files with 5 additions and 0 deletions
|
|
@ -1926,9 +1926,14 @@
|
|||
#ifdef FT_CONFIG_OPTION_INCREMENTAL
|
||||
|
||||
if ( glyph_data_loaded )
|
||||
{
|
||||
/* restore original stream */
|
||||
loader->stream = face->root.stream;
|
||||
|
||||
face->root.internal->incremental_interface->funcs->free_glyph_data(
|
||||
face->root.internal->incremental_interface->object,
|
||||
&glyph_data );
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue