Class: GD2::FFIStruct::ImagePtr

Inherits:
FFI::ManagedStruct
  • Object
show all
Defined in:
lib/gd2/ffi_struct.rb

Class Method Summary collapse

Class Method Details

.release(ptr) ⇒ Object


54
55
56
# File 'lib/gd2/ffi_struct.rb', line 54

def self.release(ptr)
  ::GD2::GD2FFI.gdImageDestroy(ptr) unless ptr.null?
end