Browse Source

UI: Fix memory leak in Auto-Configuration Wizard

If streaming and recording was selected in the Auto-Configuration
Wizard, a memory leak would occur. When obs_service_resolution appeared
elsewhere in C++ files, it used a BPtr. Use BPtr here too.
Ryan Foster 3 years ago
parent
commit
0a93acbc86
1 changed files with 1 additions and 1 deletions
  1. 1 1
      UI/window-basic-auto-config-test.cpp

+ 1 - 1
UI/window-basic-auto-config-test.cpp

@@ -1020,7 +1020,7 @@ void AutoConfigTestPage::FinalizeResults()
 		obs_service_apply_encoder_settings(service, vencoder_settings,
 						   nullptr);
 
-		struct obs_service_resolution *res_list;
+		BPtr<obs_service_resolution> res_list;
 		size_t res_count;
 		int maxFPS;
 		obs_service_get_supported_resolutions(service, &res_list,