MCPcopy Create free account
hub / github.com/GNOME/gjs / release

Method release

gi/arg-cache.cpp:1105–1115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1103 set_inout_parameter(state, arg);
1104 }
1105 bool release(JSContext*, GjsFunctionCallState* state,
1106 GIArgument* in_arg [[maybe_unused]],
1107 GIArgument* out_arg) override {
1108 GIArgument* original_out_arg =
1109 &(state->inout_original_cvalue(m_arg_pos));
1110 if (m_transfer != GI_TRANSFER_EVERYTHING)
1111 gjs_gi_argument_release_byte_array(original_out_arg);
1112 if (m_transfer != GI_TRANSFER_NOTHING)
1113 gjs_gi_argument_release_byte_array(out_arg);
1114 return true;
1115 }
1116};
1117
1118struct ExplicitArrayBase : BasicTypeContainerReturn, ExplicitArray {

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected