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

Function garrow_tensor_dispose

c_glib/arrow-glib/tensor.cpp:55–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53 garrow_tensor_get_instance_private(GARROW_TENSOR(obj)))
54
55static void
56garrow_tensor_dispose(GObject *object)
57{
58 auto priv = GARROW_TENSOR_GET_PRIVATE(object);
59
60 if (priv->buffer) {
61 g_object_unref(priv->buffer);
62 priv->buffer = nullptr;
63 }
64
65 G_OBJECT_CLASS(garrow_tensor_parent_class)->dispose(object);
66}
67
68static void
69garrow_tensor_finalize(GObject *object)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected