From 8d43caed5f8a51fba72a9ff709d56286292bbaac Mon Sep 17 00:00:00 2001 From: Krad Date: Tue, 26 Oct 2021 10:18:23 +0800 Subject: [PATCH] Remove json string free logic --- src/patientinformationform.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/patientinformationform.cpp b/src/patientinformationform.cpp index 165e70c..f10cf08 100644 --- a/src/patientinformationform.cpp +++ b/src/patientinformationform.cpp @@ -55,7 +55,7 @@ const char *PatientInformationForm::getCurrentPatientJsonString(bool empty) { cJSON_AddItemToObject(root, "ReferringPhysicianName",cJSON_CreateString("XX")); cJSON_AddItemToObject(root, "InstituteName",cJSON_CreateString("EQ9")); cJSON_AddItemToObject(root, "InstituteAddress",cJSON_CreateString("HZ")); - delete jsonstr; +// delete jsonstr; jsonstr = cJSON_Print(root); cJSON_Delete(root); return jsonstr;