]> git.notmuchmail.org Git - notmuch/commitdiff
lib: move deallocation of memory from n_d_close to n_d_destroy
authorDavid Bremner <david@tethera.net>
Tue, 14 Jul 2020 11:25:28 +0000 (08:25 -0300)
committerDavid Bremner <david@tethera.net>
Wed, 22 Jul 2020 22:52:55 +0000 (19:52 -0300)
In order to mimic the "best effort" API of Xapian to provide
information from a closed database when possible, do not
destroy the Xapian database object too early.

Because the pointer to a Xapian database is no longer nulled on close,
introduce a flag to track whether the notmuch database is open or not.


No differences found