commit | b4dddd8244fb59795f030530ad2b401ec4d5b477 | [log] [tgz] |
---|---|---|
author | Alexei Podtelezhnikov <apodtele@gmail.com> | Wed Sep 22 00:30:03 2021 -0400 |
committer | Alexei Podtelezhnikov <apodtele@gmail.com> | Wed Sep 22 00:30:03 2021 -0400 |
tree | b0c56eeefd3c14af527f0b0fa9f99c8c28980d6a | |
parent | 93866bec77bee6479d8103175562c4fe472c3529 [diff] |
[base] Initialize stream memory earlier. With Windows memory management tracking heap, it is important to use it during the stream opening fallback. In Unix, the argument is unused, but it is better to set it correctly. * src/base/ftobjs.c (FT_Stream_New): Set memory before calling `FT_Stream_Open`. * builds/windows/ftsystem.c, builds/unix/ftsystem.c (FT_Stream_Open, ft_close_stream_by_free): Call `ft_alloc` and `ft_free` with proper memory argumment.