diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2017-05-25 19:06:25 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2017-05-25 19:06:25 -0700 |
commit | fd402c48d244f7f823f18588bf67eda085b103e9 (patch) | |
tree | ae4b87229be6da86174a5f8ea6264decdad52edb /stream.h | |
parent | 8e65f3539cca89375e73eb6aad9959dbe4485583 (diff) | |
download | txr-fd402c48d244f7f823f18588bf67eda085b103e9.tar.gz txr-fd402c48d244f7f823f18588bf67eda085b103e9.tar.bz2 txr-fd402c48d244f7f823f18588bf67eda085b103e9.zip |
ffi: bugfix: gc-correct handling of memb array.
* ffi.c (make_ffi_type_struct): Use calloc for allocating
memb, so all the Lisp objects in it are initially nil. Then
install it into the structure upfront. Afterward, as we
iterate over the slots and types and install them into the
array, we lose references to them. But now since the array is
now wired into the FFI struct type structure, these objects
are now visible to GC.
Diffstat (limited to 'stream.h')
0 files changed, 0 insertions, 0 deletions