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 once
master
jp9000 2014-08-25 10:09:57 -07:00
parent ff9c0528b7
commit 76c6f36488
1 changed files with 6 additions and 0 deletions

View File

@ -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,