Fix memory leak

This commit is contained in:
Hylke Bons 2011-09-14 20:18:15 +02:00
parent bcc12f4a1c
commit cc17d00d00

View file

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