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