mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-21 17:56:04 +08:00
Merge branch '3.8' into 3.9-beta
This commit is contained in:
commit
9b63c65522
@ -120,7 +120,15 @@ Json::Json(const char *value) :
|
|||||||
}
|
}
|
||||||
|
|
||||||
Json::~Json() {
|
Json::~Json() {
|
||||||
delete _child;
|
spine::Json* curr = nullptr;
|
||||||
|
spine::Json* next = _child;
|
||||||
|
do {
|
||||||
|
curr = next;
|
||||||
|
if (curr) {
|
||||||
|
next = curr->_next;
|
||||||
|
}
|
||||||
|
delete curr;
|
||||||
|
} while(next);
|
||||||
|
|
||||||
if (_valueString) {
|
if (_valueString) {
|
||||||
SpineExtension::free(_valueString, __FILE__, __LINE__);
|
SpineExtension::free(_valueString, __FILE__, __LINE__);
|
||||||
@ -129,8 +137,6 @@ Json::~Json() {
|
|||||||
if (_name) {
|
if (_name) {
|
||||||
SpineExtension::free(_name, __FILE__, __LINE__);
|
SpineExtension::free(_name, __FILE__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
delete _next;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const char *Json::skip(const char *inValue) {
|
const char *Json::skip(const char *inValue) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user