Merge pull request #1711 from VodBox/mem-leak-fix
frontend-tools: Fix memory leak when reloading scripts
This commit is contained in:
commit
e1ebf1c610
@ -237,6 +237,7 @@ void ScriptsTool::ReloadScript(const char *path)
|
||||
obs_properties_t *prop =
|
||||
obs_script_get_properties(script);
|
||||
obs_properties_apply_settings(prop, settings);
|
||||
obs_properties_destroy(prop);
|
||||
|
||||
break;
|
||||
}
|
||||
@ -332,6 +333,7 @@ void ScriptsTool::on_addScripts_clicked()
|
||||
obs_properties_t *prop =
|
||||
obs_script_get_properties(script);
|
||||
obs_properties_apply_settings(prop, settings);
|
||||
obs_properties_destroy(prop);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user