Class: GObject::GObject::ManagedStruct

Inherits:
FFI::ManagedStruct
  • Object
show all
Includes:
GObjectLayout
Defined in:
lib/vips/gobject.rb

Overview

the struct with unref ... manage object lifetime with this

Direct Known Subclasses

Vips::Object::ManagedStruct

Class Method Summary collapse

Methods included from GObjectLayout

included

Class Method Details

.release(ptr) ⇒ Object


55
56
57
58
59
60
# File 'lib/vips/gobject.rb', line 55

def self.release ptr
  # GLib::logger.debug("GObject::GObject::ManagedStruct.release") {
  #     "unreffing #{ptr}"
  # }
  ::GObject::g_object_unref ptr
end