X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=bindings%2Fruby%2Ffilenames.c;h=0dec19520b59b0b421df5c7a4cb03826e69d235d;hb=3df2281746d57abbb45790ecb432ef40533c30bc;hp=656c58e6f40dfdc87bcbc86b6dd7b2eb2680ecab;hpb=07dff496304d6dc2e8033a18691b095ed9cd212f;p=notmuch diff --git a/bindings/ruby/filenames.c b/bindings/ruby/filenames.c index 656c58e6..0dec1952 100644 --- a/bindings/ruby/filenames.c +++ b/bindings/ruby/filenames.c @@ -28,12 +28,7 @@ VALUE notmuch_rb_filenames_destroy (VALUE self) { - notmuch_filenames_t *fnames; - - Data_Get_Notmuch_FileNames (self, fnames); - - notmuch_filenames_destroy (fnames); - DATA_PTR (self) = NULL; + notmuch_rb_object_destroy (self, ¬much_rb_filenames_type); return Qnil; }