mirror of
git://git.sv.nongnu.org/freetype/freetype2.git
synced 2026-01-19 04:52:09 +00: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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user