|
From: | Werner LEMBERG |
Subject: | [ft-devel] Re: Reference count in FreeType2 |
Date: | Sun, 18 Jul 2010 18:43:48 +0200 (CEST) |
> FT_Reference_Face(). That increments the refcount. Then > FT_Done_Face() should decrement the refcount and only destroy if it > drops to zero. Refcount is initialized to 1 when face is > constructed. And of course these should be done using atomic > operators. > > Same about FT_Library and any other object worth keeping around. > But those two are the major ones. I've now implemented FT_Reference_Face and FT_Reference_Library. Please test. Werner
[Prev in Thread] | Current Thread | [Next in Thread] |