Hi, I think wmaker can do a better shutdown. Now wmaker lost memory because it doesn't clean some variables (pe. Domains). Example:
==22327== 18 bytes in 1 blocks are definitely lost in loss record 196 of 1,438 ==22327== at 0x4C28BED: malloc (vg_replace_malloc.c:263) ==22327== by 0x509978E: wmalloc (memory.c:80) ==22327== by 0x50A1314: wusergnusteppath (userdefaults.c:72) ==22327== by 0x50A137F: wdefaultspathfordomain (userdefaults.c:89) ==22327== by 0x40B1EB: main (main.c:515) or ==22327== 18 bytes in 1 blocks are definitely lost in loss record 197 of 1,438 ==22327== at 0x4C28BED: malloc (vg_replace_malloc.c:263) ==22327== by 0x509978E: wmalloc (memory.c:80) ==22327== by 0x50A1314: wusergnusteppath (userdefaults.c:72) ==22327== by 0x50A137F: wdefaultspathfordomain (userdefaults.c:89) ==22327== by 0x419AF8: wDefaultsInitDomain (defaults.c:817) ==22327== by 0x445959: StartUp (startup.c:669) ==22327== by 0x40AE2D: main (main.c:835) Memory is allocated for the user gnu path and stored in the domain, but domain won't be freed. Is interesting the number of lines in the startup file and the lines in shutdown.c: kix@osaka:~/src/wmaker/wmaker-crm/src$ ls -l shutdown.c startup.c -rw-r--r-- 1 kix kix 4848 oct 8 05:52 shutdown.c -rw-r--r-- 1 kix kix 25961 oct 31 00:00 startup.c kix@osaka:~/src/wmaker/wmaker-crm/src$ More things in shutdown.c? OTOH, probably the function ExecExitScript() should be moved from main.c to shutdown.c, because is only used there. kix@osaka:~/src/wmaker/wmaker-crm/src$ grep ExecExitScript *c main.c:void ExecExitScript(void) shutdown.c: ExecExitScript(); Cheers, kix -- ||// //\\// Rodolfo "kix" Garcia ||\\// //\\ http://www.kix.es/ -- To unsubscribe, send mail to [email protected].
