GNOME Bugzilla – Bug 627257
camel reference leakage ...
Last modified: 2013-03-21 11:00:04 UTC
By using a hardware watch point on a CamelMboxFolder reference: p &((GObject *)mail_folder)->ref_count watch *$<print-out-value> commands bt continue end in gdb - I got a nice trace - which I've pruned signal pairs (etc. from) - to try to work out why we leak references to CamelFolders. Sadly it's unclear to me (since things are unreffed at idle - why are they?) whether we are perhaps just missing a few idle handler runs before we exit to release some more refs (or something). Either way, there is clearly a runaway reference leak on the 'Templates' folder; I have: 0x8307418 CamelMboxFolder 12158 'Templates' 'Templates' ie. 12158 references on exit last time ;-)
Created attachment 168197 [details] reference log file
I took your debug patch from bug #626180 and with it the Templates folder has only 4 references at the end. This is OK, due to other internal caches. I'm closing this for now, also because I think the over-added references had been fixed meanwhile, it was some issue in templates plugin, if I recall correctly. The 3.6.x should be fine on this.