diff --git a/bindings/ruby/directory.c b/bindings/ruby/directory.c index 0f37b391..fe5fc46d 100644 --- a/bindings/ruby/directory.c +++ b/bindings/ruby/directory.c @@ -30,7 +30,7 @@ notmuch_rb_directory_destroy (VALUE self) { notmuch_directory_t *dir; - Data_Get_Struct (self, notmuch_directory_t, dir); + Data_Get_Notmuch_Directory (self, dir); notmuch_directory_destroy (dir); DATA_PTR (self) = NULL; diff --git a/bindings/ruby/threads.c b/bindings/ruby/threads.c index ed403a8f..5885f565 100644 --- a/bindings/ruby/threads.c +++ b/bindings/ruby/threads.c @@ -30,7 +30,7 @@ notmuch_rb_threads_destroy (VALUE self) { notmuch_threads_t *threads; - Data_Get_Struct (self, notmuch_threads_t, threads); + Data_Get_Notmuch_Threads (self, threads); notmuch_threads_destroy (threads); DATA_PTR (self) = NULL;