ruby: add missing Data_Get_Notmuch helpers

Apparently commit 5c9e3855 (ruby: Don't barf if an object is destroyed
more than once, 2010-05-26) missed these two.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
This commit is contained in:
Felipe Contreras 2021-05-04 03:17:40 -05:00 committed by David Bremner
parent 25da4a1340
commit 75738758f9
2 changed files with 2 additions and 2 deletions

View file

@ -30,7 +30,7 @@ notmuch_rb_directory_destroy (VALUE self)
{ {
notmuch_directory_t *dir; notmuch_directory_t *dir;
Data_Get_Struct (self, notmuch_directory_t, dir); Data_Get_Notmuch_Directory (self, dir);
notmuch_directory_destroy (dir); notmuch_directory_destroy (dir);
DATA_PTR (self) = NULL; DATA_PTR (self) = NULL;

View file

@ -30,7 +30,7 @@ notmuch_rb_threads_destroy (VALUE self)
{ {
notmuch_threads_t *threads; notmuch_threads_t *threads;
Data_Get_Struct (self, notmuch_threads_t, threads); Data_Get_Notmuch_Threads (self, threads);
notmuch_threads_destroy (threads); notmuch_threads_destroy (threads);
DATA_PTR (self) = NULL; DATA_PTR (self) = NULL;