-Fixed "multiple-save" JSON bug

main
Harry van Haaren 2013-09-18 13:54:59 +01:00
parent d9b96ec29c
commit 9bd398a216
1 changed files with 9 additions and 0 deletions

View File

@ -199,5 +199,14 @@ int DiskWriter::writeSession()
// clear the clipData, clean page for next save
clipData.clear();
// reset the cJSON objects
cJSON_Delete( session );
cJSON_Delete( sample );
session = cJSON_CreateObject();
sample = cJSON_CreateObject();
return LUPPP_RETURN_OK;
}