andy128k / cl-gobject-introspection

BSD 2-Clause "Simplified" License
49 stars 15 forks source link

Garbage collection of info-ffi for "transfer none" #46

Closed hying-caritas closed 10 years ago

hying-caritas commented 10 years ago

For "transfer none" returned info-ffi, the reference count of returned info-ffi will not be increased for the caller, but a new pointer is established in lisp for it. For example, g-base-info-get-container. For these info-ffis, we should increase reference count when the new pointer is established in lisp and decrease reference count when the pointer is garbage collected.