Basic UI: Clear http return data
If the data isn't manually cleared it will accumulate, and cause json errors if update check/log return is queried more than oncemaster
parent
ff9c0528b7
commit
76c6f36488
|
@ -935,6 +935,8 @@ void OBSBasic::updateFileFinished()
|
|||
if (!jsonReply || !*jsonReply)
|
||||
return;
|
||||
|
||||
blog(LOG_DEBUG, "%s", jsonReply);
|
||||
|
||||
obs_data_t returnData = obs_data_create_from_json(jsonReply);
|
||||
obs_data_t versionData = obs_data_get_obj(returnData, VERSION_ENTRY);
|
||||
const char *description = obs_data_get_string(returnData,
|
||||
|
@ -976,6 +978,8 @@ void OBSBasic::updateFileFinished()
|
|||
|
||||
obs_data_release(versionData);
|
||||
obs_data_release(returnData);
|
||||
|
||||
updateReturnData.clear();
|
||||
}
|
||||
|
||||
void OBSBasic::RemoveSelectedScene()
|
||||
|
@ -1850,6 +1854,8 @@ void OBSBasic::logUploadFinished()
|
|||
|
||||
OBSLogReply logDialog(this, logURL);
|
||||
logDialog.exec();
|
||||
|
||||
logUploadReturnData.clear();
|
||||
}
|
||||
|
||||
static void RenameListItem(OBSBasic *parent, QListWidget *listWidget, obs_source_t source,
|
||||
|
|
Loading…
Reference in New Issue