UI: Use std::unique_ptr for ui variables
Most ui variables were using std::unique_ptr, but not all. Went through all of the UI code to find where they were manually deleted.
This commit is contained in:
parent
b6b696fd89
commit
7b418d5be3
11 changed files with 28 additions and 66 deletions
|
|
@ -218,8 +218,6 @@ ScriptsTool::~ScriptsTool()
|
|||
config_t *global_config = obs_frontend_get_global_config();
|
||||
config_set_int(global_config, "scripts-tool", "prevScriptRow",
|
||||
ui->scripts->currentRow());
|
||||
|
||||
delete ui;
|
||||
}
|
||||
|
||||
void ScriptsTool::RemoveScript(const char *path)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue