GNOME Bugzilla – Bug 651461
e_book_backend_file_get_changes: Possible memory leak
Last modified: 2011-06-07 09:01:52 UTC
Created attachment 188877 [details] [review] Proposed patch Currently, only the list elements were freed. The attached patch makes sure the GLists are freed too.
Patch looks correct. I had to double-check that the list content was getting freed, but it looks like it is. This is a case where using GQueues instead of GLists would have been easier... This code no longer exists on the master branch, but you can commit to the gnome-3-0 branch and backport if needed.
Chris backported the fixes and I committed them to 2.32 and 3.0 branches: d17323b4ca72ef45a1534a1fa3c49a1576f751fc e_book_backend_file_get_changes: Fix possible memory leak c85a6bccc2412b357901386b671651a45fde74d4 e_book_backend_file_get_changes: Fix possible memory leak