Close UAT file after loading.

Open files may prevent deleting a used profile with UAT files.

svn path=/trunk/; revision=36096
This commit is contained in:
Stig Bjørlykke 2011-02-28 16:11:20 +00:00
parent 9a7dbb4182
commit 002cac81c2
1 changed files with 1 additions and 0 deletions

View File

@ -304,6 +304,7 @@ gboolean uat_load(uat_t* uat_in, char** err) {
g_free(fname); /* we're done with the file name now */
yylex();
fclose(yyin);
yyrestart(NULL);
uat->changed = FALSE;