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



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

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