-Fixed "multiple-save" JSON bug
parent
d9b96ec29c
commit
9bd398a216
|
@ -199,5 +199,14 @@ int DiskWriter::writeSession()
|
||||||
// clear the clipData, clean page for next save
|
// clear the clipData, clean page for next save
|
||||||
clipData.clear();
|
clipData.clear();
|
||||||
|
|
||||||
|
|
||||||
|
// reset the cJSON objects
|
||||||
|
cJSON_Delete( session );
|
||||||
|
cJSON_Delete( sample );
|
||||||
|
|
||||||
|
session = cJSON_CreateObject();
|
||||||
|
sample = cJSON_CreateObject();
|
||||||
|
|
||||||
|
|
||||||
return LUPPP_RETURN_OK;
|
return LUPPP_RETURN_OK;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue