aboutsummaryrefslogtreecommitdiff
path: root/jerry-core/ecma/builtin-objects/ecma-builtin-array-prototype.c
diff options
context:
space:
mode:
authorLászló Langó <llango.u-szeged@partner.samsung.com>2016-06-14 15:00:12 +0200
committerLászló Langó <llango.u-szeged@partner.samsung.com>2016-06-16 12:44:27 +0200
commit8453a9ade88d1131e1e09dcfe25ce2764fa7ccc7 (patch)
tree49508d0bb58821ed3d54e3889f87e0a96914fa10 /jerry-core/ecma/builtin-objects/ecma-builtin-array-prototype.c
parent0daeb2f94256b1b723329e9b994d9e47270f92ee (diff)
Change return value of 'ecma_ref_ecma_string' to void
JerryScript-DCO-1.0-Signed-off-by: László Langó llango.u-szeged@partner.samsung.com
Diffstat (limited to 'jerry-core/ecma/builtin-objects/ecma-builtin-array-prototype.c')
-rw-r--r--jerry-core/ecma/builtin-objects/ecma-builtin-array-prototype.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/jerry-core/ecma/builtin-objects/ecma-builtin-array-prototype.c b/jerry-core/ecma/builtin-objects/ecma-builtin-array-prototype.c
index 61f9aac4..1ac76d86 100644
--- a/jerry-core/ecma/builtin-objects/ecma-builtin-array-prototype.c
+++ b/jerry-core/ecma/builtin-objects/ecma-builtin-array-prototype.c
@@ -175,7 +175,8 @@ ecma_builtin_array_prototype_object_to_locale_string (const ecma_value_t this_ar
ecma_builtin_helper_get_to_locale_string_at_index (obj_p, 0),
ret_value);
- ecma_string_t *return_string_p = ecma_ref_ecma_string (ecma_get_string_from_value (first_value));
+ ecma_string_t *return_string_p = ecma_get_string_from_value (first_value);
+ ecma_ref_ecma_string (return_string_p);
/* 9-10. */
for (uint32_t k = 1; ecma_is_value_empty (ret_value) && (k < length); k++)
@@ -402,7 +403,8 @@ ecma_builtin_array_prototype_join (const ecma_value_t this_arg, /**< this argume
ecma_op_array_get_to_string_at_index (obj_p, 0),
ret_value);
- ecma_string_t *return_string_p = ecma_ref_ecma_string (ecma_get_string_from_value (first_value));
+ ecma_string_t *return_string_p = ecma_get_string_from_value (first_value);
+ ecma_ref_ecma_string (return_string_p);
/* 9-10. */
for (uint32_t k = 1; ecma_is_value_empty (ret_value) && (k < length); k++)