X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=bindings%2Fruby%2Fdatabase.c;fp=bindings%2Fruby%2Fdatabase.c;h=c03d7011f8406931045183a02eeb0d1395eb0107;hp=e84f726d1bf5576814a019062e883e604f0ba467;hb=034102303eb4a2577ea06a453241fed6fe882322;hpb=d81fc4b42de2687a06046d068fe391282b0b8b8f diff --git a/bindings/ruby/database.c b/bindings/ruby/database.c index e84f726d..c03d7011 100644 --- a/bindings/ruby/database.c +++ b/bindings/ruby/database.c @@ -113,11 +113,13 @@ notmuch_rb_database_open (int argc, VALUE *argv, VALUE klass) VALUE notmuch_rb_database_close (VALUE self) { + notmuch_status_t ret; notmuch_database_t *db; Data_Get_Notmuch_Database (self, db); - notmuch_database_destroy (db); + ret = notmuch_database_destroy (db); DATA_PTR (self) = NULL; + notmuch_rb_status_raise (ret); return Qnil; }