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