GNOME Bugzilla – Bug 640842
Add memory-leaking tests for common operations
Last modified: 2018-08-04 08:25:05 UTC
As we saw in bug 640551 and bug 640554, small memory leaks over time can be more serious problems for users who switch networks frequently and rarely reboot. I didn't notice this since it doesn't fit my usage profile. Valgrind ships with libraries to track memory leaks. We should wrap this with some convenient Vala functions and make tests to track 'definitely lost' memory for common operations such as: * account(s) going online -> offline -> online repeatedly (Tp backend) * Personas getting linked together (general Folks) * Personas getting anti-linked/split (general Folks) * avatars changing (general Folks and Tp backend) We could extend this list even farther, but these seem like some good major cases. If at all possible, these tests should be part of the regular 'make check' and require that memory 'definitely lost' be zero bytes.
I noticed that TpAccount objects are not destroyed when exiting Empathy. As Folks is doing a lot of ref/unref on those, I'd be interested to know if it leaks TpAccount.
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/folks/issues/9.