[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:
Alexei Podtelezhnikov
2025-08-14 12:23:03 -04:00
parent 508c30e086
commit 6bd5a8cc78

View File

@@ -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