decklink-output-ui: Fix memory leak

Add missing bfree by changing `char *` to `BPtr<char>`.
master
Norihiro Kamae 2022-07-19 19:43:09 +09:00 committed by Ryan Foster
parent efcfc86444
commit 288f29fa2a
1 changed files with 3 additions and 2 deletions

View File

@ -86,11 +86,12 @@ void DecklinkOutputUI::SetupPreviewPropertiesView()
void DecklinkOutputUI::SavePreviewSettings()
{
char *modulePath = obs_module_get_config_path(obs_current_module(), "");
BPtr<char> modulePath =
obs_module_get_config_path(obs_current_module(), "");
os_mkdirs(modulePath);
char *path = obs_module_get_config_path(
BPtr<char> path = obs_module_get_config_path(
obs_current_module(), "decklinkPreviewOutputProps.json");
obs_data_t *settings = previewPropertiesView->GetSettings();