UI: Clear out previous projectors when loading saved projectors
Closes obsproject/obs-studio#1544master
parent
ba5564dbf9
commit
a20aeb8362
|
@ -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++) {
|
||||
|
|
Loading…
Reference in New Issue