I got annoyed with ENABLE_MEM_PROFILE because when ever I did a g_mem_profile() at the end of my program, it would tell me I had allocated a lot more memory than I had and that I had freed very little of it. Digging into I realized that several glib structures (the lists in perticular) allocate a bunch of memory chunks which are never freed. This, obviously, is a Bad Thing(tm), however to fix it (and maintain current functunality) would require adding a clean-up method to glib. So, since I wanted to see if my program was leaking memory, and g_mem_profile() couldn't tell me that since glib was leaking, I dug around until I found ENABLE_MEM_PROFILE_EXCLUDES_MEM_CHUNKS in gmem.c. This made me very happy till I realized that it didn't work. This patch fixes it. - Sam Ziegler ziegler@bayarea.net