freetype
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ft] A suspicious memory leak in src/truetype/ttgload.c: tt_loader_i


From: Werner LEMBERG
Subject: Re: [ft] A suspicious memory leak in src/truetype/ttgload.c: tt_loader_init
Date: Fri, 15 May 2015 14:33:27 +0200 (CEST)

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


    Werner



reply via email to

[Prev in Thread] Current Thread [Next in Thread]