Skip to content

Commit

Permalink
Fix leak after variable initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
SuslikV authored and jp9000 committed Mar 28, 2018
1 parent 3521f18 commit e6fb3a0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion obs-browser/browser-manager-base.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -558,7 +558,11 @@ void BrowserManager::Impl::BrowserManagerEntry()
settings.log_severity = LOGSEVERITY_VERBOSE;
settings.windowless_rendering_enabled = true;
settings.no_sandbox = true;
CefString(&settings.cache_path).FromASCII(obs_module_config_path(""));

char *conf_path = obs_module_config_path("");
CefString(&settings.cache_path).FromASCII(conf_path);
bfree(conf_path);

CefString(&settings.browser_subprocess_path) = getBootstrap();
CefRefPtr<BrowserApp> app(new BrowserApp());
CefExecuteProcess(mainArgs, app, nullptr);
Expand Down

0 comments on commit e6fb3a0

Please sign in to comment.