[f-spot] Fix resource leak in MD5 calculation.



commit b0c3658686429c3b40d5816da595d7cb43996a13
Author: Ruben Vermeersch <ruben savanne be>
Date:   Sun Jun 13 14:23:37 2010 +0200

    Fix resource leak in MD5 calculation.

 src/Core/Photo.cs |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/Core/Photo.cs b/src/Core/Photo.cs
index 1950795..0d0f047 100644
--- a/src/Core/Photo.cs
+++ b/src/Core/Photo.cs
@@ -505,6 +505,7 @@ namespace FSpot
 			var file = GLib.FileFactory.NewForUri (uri);
 			var stream = new GLib.GioStream (file.Read (null));
 			var hash = CryptoUtil.Md5EncodeStream (stream);
+			stream.Close ();
 			return hash;
 		}
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]