]> git.notmuchmail.org Git - notmuch/blobdiff - bindings/ruby/init.c
ruby: new notmuch_rb_object_destroy() helper
[notmuch] / bindings / ruby / init.c
index a9f863ebd22cb1fc4e4c774fd1f8f8729fa47c25..62515ecad54b11120b29e95f816476c9727587cb 100644 (file)
@@ -54,6 +54,7 @@ const rb_data_type_t notmuch_rb_object_type = {
     const rb_data_type_t notmuch_rb_ ## id ## _type = { \
        .wrap_struct_name = "notmuch_" #id, \
        .parent = &notmuch_rb_object_type, \
     const rb_data_type_t notmuch_rb_ ## id ## _type = { \
        .wrap_struct_name = "notmuch_" #id, \
        .parent = &notmuch_rb_object_type, \
+       .data = &notmuch_ ## id ## _destroy, \
     }
 
 define_type (database);
     }
 
 define_type (database);