]> git.notmuchmail.org Git - notmuch/commit
add_message: Fix memory leak of thread_ids GPtrArray.
authorCarl Worth <cworth@cworth.org>
Tue, 20 Oct 2009 20:05:45 +0000 (13:05 -0700)
committerCarl Worth <cworth@cworth.org>
Tue, 20 Oct 2009 20:05:45 +0000 (13:05 -0700)
commit5a84df0f1507753b1776636ad268d36b7346a8fd
tree8427b873e91f2df3a744971d6ad9d6a9e5000c31
parente6236b88fd18231d0524b14723e0709a90b0572c
add_message: Fix memory leak of thread_ids GPtrArray.

We were properly feeing this memory when the thread-ids list was not
empty, but leaking it when it was.

Thanks, of course, to valgrind along with the G_SLICE=always-malloc
environment variable which makes leak checking with glib almost
bearable.
database.cc