]> git.notmuchmail.org Git - notmuch/blobdiff - bindings/ruby/database.c
ruby: enable garbage collection using talloc
[notmuch] / bindings / ruby / database.c
index 0159aaac57ca0413132352d6afe42b4bc485cab6..1cf4e4e27c170e45f2e332b3e2d5e61c93646a9d 100644 (file)
@@ -81,7 +81,7 @@ notmuch_rb_database_initialize (int argc, VALUE *argv, VALUE self)
        ret = notmuch_database_open (path, mode, &database);
     notmuch_rb_status_raise (ret);
 
-    DATA_PTR (self) = notmuch_rb_object_create (database);
+    DATA_PTR (self) = notmuch_rb_object_create (database, "notmuch_rb_database");
 
     return self;
 }