freetype-devel
[Top][All Lists]
Advanced

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

Re: [ft-devel] Why my memory is not been freed?


From: Jun.Wang
Subject: Re: [ft-devel] Why my memory is not been freed?
Date: Mon, 9 Mar 2009 08:35:56 -0700 (PDT)



Bugzilla from address@hidden wrote:
> 
> 
> 
> Please upgrade to version 2.3.7 (or the current CVS or 2.3.9 next
> week) and try again.
> 
> 
>     Werner
> 
> 
> 

I use ver2.3.7 test again. Follows are the memory report:
//only 1 character
FreeType Memory Dump: current=107502 max=107654 total=125708 count=63
//6 characters
FreeType Memory Dump: current=106802 max=106802 total=118386 count=63

I use Arial.ttf. I uploaded my test project. Please Check.
http://www.nabble.com/file/p22413476/GenfontData.rar GenfontData.rar 

The modules:
//FT_USE_MODULE(autofit_module_class)
FT_USE_MODULE(tt_driver_class)
//FT_USE_MODULE(t1_driver_class)
//FT_USE_MODULE(cff_driver_class)
//FT_USE_MODULE(t1cid_driver_class)
//FT_USE_MODULE(pfr_driver_class)
//FT_USE_MODULE(t42_driver_class)
//FT_USE_MODULE(winfnt_driver_class)
//FT_USE_MODULE(pcf_driver_class)
//FT_USE_MODULE(psaux_module_class)
//FT_USE_MODULE(psnames_module_class)
//FT_USE_MODULE(pshinter_module_class)
FT_USE_MODULE(ft_raster1_renderer_class)
FT_USE_MODULE(sfnt_module_class)
FT_USE_MODULE(ft_smooth_renderer_class)
FT_USE_MODULE(ft_smooth_lcd_renderer_class)
FT_USE_MODULE(ft_smooth_lcdv_renderer_class)
//FT_USE_MODULE(bdf_driver_class)

I modified the FT_Done_FreeType function to display not freed memory:
  FT_Done_FreeType( FT_Library  library )
  {
    if ( library )
    {
      FT_Memory  memory = library->memory;


      /* Discard the library object */
      //FT_Done_Library( library );

      /* discard memory manager */
      FT_Done_Memory( memory );
    }

    return FT_Err_Ok;
  }
In the ftoption.h file, I disabled follows:
//#define FT_CONFIG_OPTION_USE_LZW
//#define FT_CONFIG_OPTION_USE_ZLIB
#define FT_DEBUG_MEMORY
-- 
View this message in context: 
http://www.nabble.com/Why-my-memory-is-not-been-freed--tp22383746p22413476.html
Sent from the Freetype - Dev mailing list archive at Nabble.com.





reply via email to

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