Change-Id: I7bd8ade3555eac270d2c63d69a3f70e7493ce787
Signed-off-by: Kyeonghun Lee <kh9090.lee@samsung.com>
if (new_obj == NULL) {
if (type == MSG_JSON_GEN_OBJECT)
- json_object_ref((JsonObject *)json_value);
+ json_object_unref((JsonObject *)json_value);
else if (type == MSG_JSON_GEN_ARRAY)
json_array_unref((JsonArray *)json_value);
}
if (obj->value != NULL) {
if (obj->type == MSG_JSON_GEN_OBJECT)
- json_object_ref((JsonObject *)obj->value);
+ json_object_unref((JsonObject *)obj->value);
else if (obj->type == MSG_JSON_GEN_ARRAY)
json_array_unref((JsonArray *)obj->value);