summaryrefslogtreecommitdiffstats
path: root/stream.h
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2017-05-25 19:06:25 -0700
committerKaz Kylheku <kaz@kylheku.com>2017-05-25 19:06:25 -0700
commitfd402c48d244f7f823f18588bf67eda085b103e9 (patch)
treeae4b87229be6da86174a5f8ea6264decdad52edb /stream.h
parent8e65f3539cca89375e73eb6aad9959dbe4485583 (diff)
downloadtxr-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