]> git.notmuchmail.org Git - notmuch/commit
python-cffi: returned OwnedMessage objects from Message.replies
authorDavid Bremner <david@tethera.net>
Sat, 8 Jan 2022 14:03:16 +0000 (10:03 -0400)
committerDavid Bremner <david@tethera.net>
Sat, 8 Jan 2022 20:29:41 +0000 (16:29 -0400)
commit9e7ea628e6bddbd7345d053a3daf14af74896cc2
treec9d1e1f324b043c3b76c1e1c0ddca47e55d99849
parentd9a2b900b6525874b913276af91840983d81b3f1
python-cffi: returned OwnedMessage objects from Message.replies

If we return regular Message objects, python will try to destroy them,
and the underlying notmuch object, causing e.g. the crash [1].

[1]: id:87sfu6utxg.fsf@tethera.net
bindings/python-cffi/notmuch2/_message.py
test/T392-python-cffi-notmuch.sh