[Fontconfig] The reference counter handling in FcConfigGetCurrent() and FcConfigReference().

Behdad Esfahbod behdad at behdad.org
Thu Jan 28 13:46:44 PST 2010


On 01/21/2010 04:57 PM, mpsuzuki at hiroshima-u.ac.jp wrote:
> Hmm, if an application links multiple libraries that some
> of them call FcConfigGetCurrent() or FcInit() by themselves
> (so FcConfigGetCurrent() or FcInit() are called multiply),
> FcFini() should be called by the application to restrict
> only one freeing? Or, all libraries can call FcFini() by
> their own scope?

Yes, FcFini() may only be called by applications, not libraries.

behdad


More information about the Fontconfig mailing list