[f-spot/HEAD] Make sure ImageFiles always get disposed.



commit ca5efa0d731eca5fa0a134bf6d1641c043ca545e
Author: Ruben Vermeersch <ruben savanne be>
Date:   Sat May 15 21:09:37 2010 +0200

    Make sure ImageFiles always get disposed.
    
    Should fix part of the resource problem.

 src/Imaging/ImageFile.cs |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/Imaging/ImageFile.cs b/src/Imaging/ImageFile.cs
index 5676fba..be20669 100644
--- a/src/Imaging/ImageFile.cs
+++ b/src/Imaging/ImageFile.cs
@@ -31,6 +31,11 @@ namespace FSpot {
 		{
 			this.uri = uri;
 		}
+
+		~ImageFile ()
+		{
+			Dispose ();
+		}
 		
 		protected Stream Open ()
 		{



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