]> git.notmuchmail.org Git - notmuch/blobdiff - bindings/ruby/database.c
ruby: Use notmuch_database_destroy instead of notmuch_database_close
[notmuch] / bindings / ruby / database.c
index 982fd592951679edc445ea44ee362ffc8933e680..ba9a1391a50918f25ca2d1bc5921c4907666e11b 100644 (file)
@@ -110,7 +110,7 @@ notmuch_rb_database_close (VALUE self)
     notmuch_database_t *db;
 
     Data_Get_Notmuch_Database (self, db);
-    notmuch_database_close (db);
+    notmuch_database_destroy (db);
     DATA_PTR (self) = NULL;
 
     return Qnil;