Method: Fiddle::Pointer#call_free

Defined in:
ext/fiddle/pointer.c

#call_freenil

Call the free function for this pointer. Calling more than once will do nothing. Does nothing if there is no free function attached.

Returns:

  • (nil)


449
450
451
452
453
454
455
456
# File 'ext/fiddle/pointer.c', line 449

static VALUE
rb_fiddle_ptr_call_free(VALUE self)
{
    struct ptr_data *pdata;
    TypedData_Get_Struct(self, struct ptr_data, &fiddle_ptr_data_type, pdata);
    fiddle_ptr_free_ptr(pdata);
    return Qnil;
}