diff options
author | Viet Hoa Dinh <dvh@fb.com> | 2015-12-17 09:11:29 -0800 |
---|---|---|
committer | Viet Hoa Dinh <dvh@fb.com> | 2015-12-17 09:11:29 -0800 |
commit | a82888636dabb374686310801f526f1d5a782f92 (patch) | |
tree | f66a95a3ffbe554dc12492f379d8659aae48dc30 /src | |
parent | 9f133092150fe309b1acb0c08d42e76e99dc61e5 (diff) |
Fixed retain (fixed #1316)
Diffstat (limited to 'src')
-rw-r--r-- | src/core/basetypes/MCJSONParser.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/basetypes/MCJSONParser.cpp b/src/core/basetypes/MCJSONParser.cpp index 31699345..cfddbf9e 100644 --- a/src/core/basetypes/MCJSONParser.cpp +++ b/src/core/basetypes/MCJSONParser.cpp @@ -587,7 +587,7 @@ bool JSONParser::parseFloat() } else { mPosition += endptr - str; - mResult = Value::valueWithDoubleValue(value); + mResult = Value::valueWithDoubleValue(value)->retain(); } pool->release(); |