diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2017-05-24 21:28:54 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2017-05-24 21:28:54 -0700 |
commit | d8e999cd3c09924a704d2a3fbe3db5372a5b5f3a (patch) | |
tree | 392392cb4162e5eea4c1e8d37747b335b9035976 /lisplib.c | |
parent | 7a6e0e4cc882833578bdfb09fc48ceb7b090f719 (diff) | |
download | txr-d8e999cd3c09924a704d2a3fbe3db5372a5b5f3a.tar.gz txr-d8e999cd3c09924a704d2a3fbe3db5372a5b5f3a.tar.bz2 txr-d8e999cd3c09924a704d2a3fbe3db5372a5b5f3a.zip |
ffi: bugfix: gc issue affecting cptr and carray.
* ffi.c (ffi_type_compile): The problem here is using
make_ffi_type_builtin and then installing an eltype. That type
has no gc function that will mark tft->eltype, exposing
the eltype to premature reclamation. We must change these
to use make_ffi_type_pointer. That constructor takes the
element type too, so the code gets simplified.
Diffstat (limited to 'lisplib.c')
0 files changed, 0 insertions, 0 deletions