diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2019-02-24 08:07:51 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2019-02-24 08:07:51 -0800 |
commit | b7b3ddb78248b0e0db3c526c666ebe56e637d47f (patch) | |
tree | 438425da8a26553b2b3e17f354f804025ea12b06 | |
parent | b03342e9ffc924eede2984349a7a9f3a28206d6c (diff) | |
download | txr-b7b3ddb78248b0e0db3c526c666ebe56e637d47f.tar.gz txr-b7b3ddb78248b0e0db3c526c666ebe56e637d47f.tar.bz2 txr-b7b3ddb78248b0e0db3c526c666ebe56e637d47f.zip |
ffi: gc bug in cptr type.
* ffi.c (ffi_type_common_mark): We must mark tft->tag field
whih is used by the cptr type and is otherwise nil.
-rw-r--r-- | ffi.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -244,6 +244,7 @@ static void ffi_type_common_mark(struct txr_ffi_type *tft) { gc_mark(tft->lt); gc_mark(tft->syntax); + gc_mark(tft->tag); } static void ffi_type_mark(val obj) |