[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ft-devel] A possible fix for potential memory leak in FT_GlyphSlot_Own_
From: |
Liang Qi |
Subject: |
[ft-devel] A possible fix for potential memory leak in FT_GlyphSlot_Own_Bitmap and some other questions about FT_GlyphSlot_Embolden() |
Date: |
Fri, 12 Dec 2008 14:43:15 +0100 |
Hi,
In freetype 2.3.7, FT_GlyphSlot_Own_Bitmap does not release the old
bitmap resource. Then I give a possible patch for it.
And I have some other questions about FT_GlyphSlot_Embolden(),
In include/freetype/ftsynth.h
/* Do not use this function directly! Copy the code to */
/* your application and modify it to suit your need. */
FT_EXPORT( void )
FT_GlyphSlot_Embolden( FT_GlyphSlot slot );
And in FT_GlyphSlot_Embolden, it calls FT_GlyphSlot_Own_Bitmap, but
there are some internal calls in FT_GlyphSlot_Own_Bitmap, such as
FT_SLOT_FACE and FT_PIX_FLOOR(they marcos).
I just want to make sure whether now FT_GlyphSlot_Embolden() is stable
enough or not. Is seemed many toolkits for CJK fonts depend on this
API. And some distributions didn't provide this API just because of
this notice. Any suggestion on this topic? Thanks a lot.
Best Regards,
Liang Qi
freetype-2.3.7-fix-embolden-memory-leak.patch
Description: Text Data
- [ft-devel] A possible fix for potential memory leak in FT_GlyphSlot_Own_Bitmap and some other questions about FT_GlyphSlot_Embolden(),
Liang Qi <=