diff --git a/src/patientinformationform.cpp b/src/patientinformationform.cpp index f10cf08..165e70c 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;