Class: GDAL::Utils::Nearblack::Options::AutoPointer

Inherits:
FFI::AutoPointer
  • Object
show all
Defined in:
lib/gdal/utils/nearblack/options.rb

Class Method Summary collapse

Class Method Details

.release(pointer) ⇒ Object



14
15
16
17
18
# File 'lib/gdal/utils/nearblack/options.rb', line 14

def self.release(pointer)
  return unless pointer && !pointer.null?

  ::FFI::GDAL::Utils.GDALNearblackOptionsFree(pointer)
end