From: Duncan C. <dun...@wo...> - 2006-05-02 22:13:06
|
On Tue, 2006-05-02 at 19:59 +0100, Axel Simon wrote: > On Tue, 2006-03-21 at 15:05 +0000, Duncan Coutts wrote: > > On Tue, 2006-03-21 at 14:46 +0000, Julian Tibble wrote: > > > Hi Duncan, > > > > > > I tried gtk2hs and the 'fonts' demo crashes on my machine. > > > > > I found the cause of this bug and it's with Pango. The gist is that we > can't create a new FontMap ever, since the memory management in > cairoFontMapListFamilies is broken. The workaround for now is to get rid > of cairoFontMapNew and only provide access to the cairoFontMapGetDefault > function which creates a FontMap but never frees it (and hence the bug > doesn't manifest itself). This is not so nice, since if you change the > FontMap you change the FontMap for everything else in your application > (which is the reason why cairoFontMapGetDefault wasn't bound initially). > > It's a workround, not more. > > Axel. Well done on tracking down the bug. Duncan |