Merge pull request #1711 from VodBox/mem-leak-fix

frontend-tools: Fix memory leak when reloading scripts
This commit is contained in:
Jim 2019-03-03 04:10:08 -08:00 committed by GitHub
commit e1ebf1c610
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);
}
}
}