UI: Clear out previous projectors when loading saved projectors

Closes obsproject/obs-studio#1544
master
ty2570 2018-11-13 14:39:56 +08:00 committed by Colin Edwards
parent ba5564dbf9
commit a20aeb8362
1 changed files with 5 additions and 0 deletions

View File

@ -716,6 +716,11 @@ void OBSBasic::LoadSceneListOrder(obs_data_array_t *array)
void OBSBasic::LoadSavedProjectors(obs_data_array_t *array)
{
for (SavedProjectorInfo *info : savedProjectorsArray) {
delete info;
}
savedProjectorsArray.clear();
size_t num = obs_data_array_count(array);
for (size_t i = 0; i < num; i++) {