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.
This commit is contained in:
Ryan Foster 2022-01-15 22:22:08 -05:00
commit 0a93acbc86

View file

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