|
From: | Grissiom |
Subject: | Re: [ft] A suspicious memory leak in src/truetype/ttgload.c: tt_loader_init |
Date: | Mon, 18 May 2015 10:20:02 +0800 |
> I'm porting FreeType-2.5.5 to an embedded RTOS. However, I found
> memory leak in looped `FT_Load_Char(fft->face, *text_ptr,
> FT_LOAD_RENDER)` while the memory won't leak if I set the load_flags
> ORed with FT_LOAD_NO_HINTING.
>
> So I dive into the source code and found in the tt_loader_init, the
> `size->bytecode_ready` and `size->cvt_ready` are always -1, causing
> `tt_size_ready_bytecode` run on the same `size` repeatedly. So the
> previous content of size will be leaked.
Please provide a stand-alone, compilable minimum example that exhibits
the problem. I can then do some debugging.
digital-number.7z
Description: application/7z-compressed
[Prev in Thread] | Current Thread | [Next in Thread] |