X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=bindings%2Fruby%2Fmessage.c;h=81085f754648b5e650bd5fc51ceefee9bfef58bd;hb=ae1336dea5cc6a221699fff260d8b44cee677f77;hp=b3aed604033aff41ff49d4eba324bfe502a50f50;hpb=9574fb60991fa81799fbd1d26d41693ca2794e6b;p=notmuch diff --git a/bindings/ruby/message.c b/bindings/ruby/message.c index b3aed604..81085f75 100644 --- a/bindings/ruby/message.c +++ b/bindings/ruby/message.c @@ -28,12 +28,7 @@ VALUE notmuch_rb_message_destroy (VALUE self) { - notmuch_message_t *message; - - Data_Get_Notmuch_Message (self, message); - - notmuch_message_destroy (message); - DATA_PTR (self) = NULL; + notmuch_rb_object_destroy (self, ¬much_rb_message_type); return Qnil; } @@ -226,7 +221,7 @@ notmuch_rb_message_get_tags (VALUE self) if (!tags) rb_raise (notmuch_rb_eMemoryError, "Out of memory"); - return Data_Wrap_Notmuch_Object (notmuch_rb_cTags, ¬much_rb_tags_type, tags); + return notmuch_rb_tags_get (tags); } /*