rb_data_free: Fix freeing embedded TypedData
The previous implementation was using the pointer given by DATA_PTR in all cases. But in the case of an embedded TypedData, that pointer is garbage, we need to use RTYPEDDATA_GET_DATA to get the proper data pointer.
DATA_PTR
Co-Authored-By: Étienne Barrié etienne.barrie@gmail.com
rb_data_free: Fix freeing embedded TypedData
The previous implementation was using the pointer given
by
DATA_PTRin all cases. But in the case of an embeddedTypedData, that pointer is garbage, we need to use RTYPEDDATA_GET_DATA
to get the proper data pointer.
Co-Authored-By: Étienne Barrié etienne.barrie@gmail.com