On Tue, Sep 26, 2006 at 04:43:11PM -0700, Keith Packard wrote: > > nope, the problem is thunderbird is freeing an object that they don't > hold a reference to. I don't blame them, fontconfig reference semantics > are completely broken... > > With old fontconfig versions, *nothing* in the cache could ever be > freed, so you could destroy the same charset a million times and have no > ill effect. Uncache objects, on the other hand, would eventually be > freed and cause the program to crash. Newer mmap'd fontconfig versions > just demonstrate this problem sooner. > > > #0 0xb79ffd17 in FcCharSetDestroy () from /usr/lib/libfontconfig.so.1 > > Calls to this function must match calls to FcCharSetCopy which increment > the refernence count. >
OK, mozilla does not call FcCharSetCopy at all ... they get the charset by: result = FcPatternGetCharSet(set->fonts[i], FC_CHARSET, 0, &fc_charset); so you say the reference count is still zero afterwards and I have to invoke FcCharSetCopy once in order to get this right? - Alexander -- GPG messages preferred. | .''`. ** Debian GNU/Linux ** Alexander Sack | : :' : The universal [EMAIL PROTECTED] | `. `' Operating System http://www.asoftsite.org | `- http://www.debian.org -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

