From: Braden M. <br...@en...> - 2010-05-27 16:38:04
|
On Mon, 2010-05-03 at 02:26 -0400, Braden McDaniel wrote: [snip] > * Fiddling with valgrind has made it clear that Text nodes are > leaky. But, since valgrind isn't showing a lot of the symbols in > its backtrace to the allocation point, tracking the leaks down > is difficult. I found one spot where we were leaking FT_Glyphs > and fixed it; but it seems there's more. However, it seems > unlikely that this is the source of the memory *corruption* that > appears to be happening. I finally tracked this down to stuff leaked (more or less deliberately) by Fontconfig. Calling FcFini will clean it up; but FcFini cannot be called safely from library code (since it cannot be called redundantly). So I've modified sdl_viewer.cpp to call FcFini on shutdown, since that's what I normally use to check for leaks in the library code. -- Braden McDaniel <br...@en...> |