mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-25 04:18:08 +01:00
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:
parent
25da4a1340
commit
75738758f9
2 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue