Thu 9 Sep 2004
I was tracking down some memory leaks and a crasher bug in my printer driver dialog module in eggcups. Colin has been showing me how to use valgrind which rocks. Anyway, after taking out all of the functionality in my dialog derived from GtkDialog it was still crashing and leaking gobs of memory. After some playing around I tried not defining the finalize method, which was what was being called right before the crashes. That seemed to fix the crash which drove me mad because I had previously stripped all the functionality out of the finalize method to no avail. In the end I finaly relized that I wasn’t chaining the parent’s finalize method and adding that fixed both the crash and memory leaks. Arg!!! Boilerplate code, how I hate thee! Live and learn.
–
J5
