MCPcopy Create free account
hub / github.com/apache/arrow / garrow_buffer_dispose

Function garrow_buffer_dispose

c_glib/arrow-glib/buffer.cpp:60–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58 garrow_buffer_get_instance_private(GARROW_BUFFER(obj)))
59
60static void
61garrow_buffer_dispose(GObject *object)
62{
63 auto priv = GARROW_BUFFER_GET_PRIVATE(object);
64
65 if (priv->data) {
66 g_bytes_unref(priv->data);
67 priv->data = nullptr;
68 }
69
70 if (priv->parent) {
71 g_object_unref(priv->parent);
72 priv->parent = nullptr;
73 }
74
75 G_OBJECT_CLASS(garrow_buffer_parent_class)->dispose(object);
76}
77
78static void
79garrow_buffer_finalize(GObject *object)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected