freetype
[Top][All Lists]
Advanced

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

Re: [Freetype] freeing a image cache


From: David Turner
Subject: Re: [Freetype] freeing a image cache
Date: Mon, 27 Aug 2001 11:05:08 +0200

Hi again,

Brian Stell a écrit :
> 
> Durint initialization I create an image cache:
> 
>   FT_Init_FreeType(&sFreeTypeLibrary);
>   FTC_Manager_New(sFreeTypeLibrary, 0, 0, 0,
>                       nsFreeTypeFaceRequester, 0, &sFTCacheManager);
>   FTC_Image_Cache_New(sFTCacheManager, &sImageCache);
>   FTC_Image_Cache_New(sFTCacheManager, &sImageCache);
> 
> During shutdown I free the library and cache manager but I do not
> see a function to free the image cache.
> 
>   FTC_Manager_Done(sFTCacheManager);
>   FT_Done_FreeType(sFreeTypeLibrary);
> 
> Does the image cache get cleaned up when the cache manager is
> freed?
>

Yes, all caches are cleaned when the manager is destroyed..
By the way, why are you using two distinct image caches ??

Regards,

- David



reply via email to

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