[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ft-devel] about FreeType manage memory.
From: |
Werner LEMBERG |
Subject: |
Re: [ft-devel] about FreeType manage memory. |
Date: |
Sat, 12 Oct 2019 08:28:55 +0200 (CEST) |
Hello Di,
sorry for the late reply.
> I use FreeType to read [a] TTF font and get the image from
> FTC_SBitRec. Then I copy the data to [the] Alpha channel in 32Bit
> bitmap.
>
> That means when I finish the copy action, the FTC_SBitRec.buffer is
> not useful. My question is [whether] I need [to] release the memory
> by myself or [whether] FreeType can do it by itself.
If you call `FTC_Manager_Done', all contained cache nodes are emptied.
`Emptying' also implies the deallocation of all associated (internal)
buffers. So the answer is that FreeType handles deallocation of cache
buffers by itself.
Werner
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [ft-devel] about FreeType manage memory.,
Werner LEMBERG <=