[controller] Fix sharing violation due to unclosed resources
This commit is contained in:
parent
8dbaff3e2c
commit
ec80a2c950
|
@ -497,6 +497,7 @@ namespace SparkleShare {
|
|||
|
||||
StreamReader reader = new StreamReader (global_config_file_path);
|
||||
string global_config_file = reader.ReadToEnd ();
|
||||
reader.Close ();
|
||||
|
||||
Regex regex = new Regex (@"name.+= (.+)");
|
||||
Match match = regex.Match (global_config_file);
|
||||
|
@ -530,6 +531,7 @@ namespace SparkleShare {
|
|||
|
||||
StreamReader reader = new StreamReader (global_config_file_path);
|
||||
string global_config_file = reader.ReadToEnd ();
|
||||
reader.Close ();
|
||||
|
||||
Regex regex = new Regex (@"email.+= (.+)");
|
||||
Match match = regex.Match (global_config_file);
|
||||
|
|
Loading…
Reference in a new issue