mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-09-24 23:31:36 +08:00
decklink-output-ui: Fix memory leak
Add missing bfree by changing `char *` to `BPtr<char>`.
This commit is contained in:
committed by
Ryan Foster
parent
efcfc86444
commit
288f29fa2a
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user