ruby: Use notmuch_database_destroy instead of notmuch_database_close
authorJustus Winter <4winter@informatik.uni-hamburg.de>
Sun, 22 Apr 2012 12:07:56 +0000 (14:07 +0200)
committerDavid Bremner <bremner@debian.org>
Sat, 28 Apr 2012 12:30:02 +0000 (09:30 -0300)
Adapt the ruby bindings to the notmuch_database_close split.

Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
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;