aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar Viet Hoa Dinh <dvh@fb.com>2015-12-17 09:11:29 -0800
committerGravatar Viet Hoa Dinh <dvh@fb.com>2015-12-17 09:11:29 -0800
commita82888636dabb374686310801f526f1d5a782f92 (patch)
treef66a95a3ffbe554dc12492f379d8659aae48dc30 /src
parent9f133092150fe309b1acb0c08d42e76e99dc61e5 (diff)
Fixed retain (fixed #1316)
Diffstat (limited to 'src')
-rw-r--r--src/core/basetypes/MCJSONParser.cpp2
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();