]> git.notmuchmail.org Git - notmuch/commit
ruby: cleanup object_destroy()
authorFelipe Contreras <felipe.contreras@gmail.com>
Tue, 3 Aug 2021 18:44:57 +0000 (13:44 -0500)
committerDavid Bremner <david@tethera.net>
Tue, 3 Aug 2021 23:30:15 +0000 (20:30 -0300)
commit2474bce8b1a5b8011b19d8ff5cc84957e71e1917
treee32bacc19374632d12754a2e7fd67be5cf536113
parentc966fa6439f35dd28c31fcd5c94465feef21151f
ruby: cleanup object_destroy()

It was assumed the destructor of notmuch_rb_database_type did return a
notmuch_status_t because that's what notmuch_database_close returns, and
that value was checked by notmuch_rb_database_close in order to decide
if to raise an exception.

It turns out notmuch_database_destroy was called instead, so nothing was
returned (void).

All the destroy functions are void, and that's what we want.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
bindings/ruby/defs.h