From cf15143fb625056eb87c17e6614fa68175cbfe80 Mon Sep 17 00:00:00 2001 From: Corey Zumar Date: Mon, 22 Jan 2018 11:26:07 -0800 Subject: [PATCH] Fix error --- src/libclipper/src/json_util.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libclipper/src/json_util.cpp b/src/libclipper/src/json_util.cpp index 86bb5c291..e656f05f3 100644 --- a/src/libclipper/src/json_util.cpp +++ b/src/libclipper/src/json_util.cpp @@ -519,7 +519,7 @@ void add_json_array(rapidjson::Document& d, const char* key_name, rapidjson::Value json_array(rapidjson::kArrayType); rapidjson::Document::AllocatorType& allocator = d.GetAllocator(); for (std::string json_string : values_to_add) { - rapidjson::Document json_obj; + rapidjson::Document json_obj(&allocator); parse_json(json_string, json_obj); json_array.PushBack(json_obj, allocator); }