Cairo SelectFontFace() Snow Leopard memory leak?
BlitzMax Forums/Brucey's Modules/Cairo SelectFontFace() Snow Leopard memory leak?
| ||
I'm having some problems/crashes with text in cairo. Bmax version 1.38 One thing I found is that Bah.Cairo SelectFontFace() seems to have a memory leak. If I check the below code with Snow Leopard activity monitor, memory grows, depending on how many times SelectFontFace() is called |
| ||
I've now added some caching so that ft fonts are not needlessly created. It will re-use those already in the cache. |
| ||
Cool, that does seems to fix it. :-) Is there anyway of unloading/freeing a Selected fontface? Before your fix, it seemed memory was not freed even after cairo.destroy(), and now it's hard to tell... |