Fix memory leak
This commit is contained in:
parent
bcc12f4a1c
commit
cc17d00d00
|
@ -523,7 +523,7 @@ namespace SparkleLib {
|
|||
}
|
||||
|
||||
if (Directory.GetFiles (path).Length == 0) {
|
||||
File.Create (Path.Combine (path, ".empty"));
|
||||
File.Create (Path.Combine (path, ".empty")).Close ();
|
||||
|
||||
} else if (File.Exists (Path.Combine (path, ".empty"))) {
|
||||
File.Delete (Path.Combine (path, ".empty"));
|
||||
|
|
Loading…
Reference in a new issue