소스 검색

UI: Hold refs to old sources during remove source undo

Fixes an issue where sources could get released and destroyed when
undoing the removal of a nested scene.
gxalpha 3 년 전
부모
커밋
3a67fe5944
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      UI/window-basic-main.cpp

+ 1 - 1
UI/window-basic-main.cpp

@@ -5740,7 +5740,7 @@ OBSData OBSBasic::BackupScene(obs_scene_t *scene,
 
 static bool add_source_enum(obs_scene_t *, obs_sceneitem_t *item, void *p)
 {
-	auto sources = static_cast<std::vector<obs_source_t *> *>(p);
+	auto sources = static_cast<std::vector<OBSSource> *>(p);
 	sources->push_back(obs_sceneitem_get_source(item));
 	return true;
 }