Merge pull request #3631 from arreina/pr/json-test-leak

test(json2): destroy the value before constructing over it
This commit is contained in:
Dean 2026-10-12 17:34:01 +13:00 committed by GitHub
commit a2c4176f7e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -498,6 +498,7 @@ static void ValueClear() {
_ZN3sce4Json6StringC1EPKc(&key, "prop");
Value* item = _ZN3sce4Json6ObjectixERKNS0_6StringE(&obj, &key);
_ZN3sce4Json5Value3setEl(item, 999);
_ZN3sce4Json5ValueD1Ev(&value);
_ZN3sce4Json5ValueC1ERKNS0_6ObjectE(&value, &obj);
Require(_ZNK3sce4Json5Value7getTypeEv(&value) == TypeObject);
_ZN3sce4Json5Value5clearEv(&value);