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:
parent
a3c97dfad2
commit
0a93acbc86
1 changed files with 1 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue