From: David Bremner Date: Tue, 14 Jul 2020 11:25:28 +0000 (-0300) Subject: lib: move deallocation of memory from n_d_close to n_d_destroy X-Git-Tag: 0.31_rc0~111 X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=commitdiff_plain;h=095d3d7134f5668b96cf1d70997d3f110b03c898;hp=095d3d7134f5668b96cf1d70997d3f110b03c898 lib: move deallocation of memory from n_d_close to n_d_destroy 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. ---