MCPcopy Create free account
hub / github.com/Vector35/binaryninja-api / releasePayload

Method releasePayload

json/jsoncpp.cpp:3509–3528  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3507}
3508
3509void Value::releasePayload() {
3510 switch (type_) {
3511 case nullValue:
3512 case intValue:
3513 case uintValue:
3514 case realValue:
3515 case booleanValue:
3516 break;
3517 case stringValue:
3518 if (allocated_)
3519 releasePrefixedStringValue(value_.string_);
3520 break;
3521 case arrayValue:
3522 case objectValue:
3523 delete value_.map_;
3524 break;
3525 default:
3526 JSON_ASSERT_UNREACHABLE;
3527 }
3528}
3529
3530void Value::dupMeta(const Value& other) {
3531 if (other.comments_) {

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected