[f-spot/rubenv-gsoc-2009: 20/86] Return shallow copies such that the pixbuf can always be safely disposed.



commit 4a8508a71c9b9993fc7e431c485cc2bbe2a5d1b2
Author: Ruben Vermeersch <ruben savanne be>
Date:   Thu Jul 23 18:16:55 2009 +0200

    Return shallow copies such that the pixbuf can always be safely disposed.

 src/Loaders/LibrawImageLoader.cs |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/Loaders/LibrawImageLoader.cs b/src/Loaders/LibrawImageLoader.cs
index b2dd9eb..06d6d25 100644
--- a/src/Loaders/LibrawImageLoader.cs
+++ b/src/Loaders/LibrawImageLoader.cs
@@ -122,7 +122,7 @@ namespace FSpot.Loaders {
 
 		public Pixbuf Pixbuf {
 			get {
-				return full == null ? thumb : full;
+				return full == null ? PixbufUtils.ShallowCopy (thumb) : PixbufUtils.ShallowCopy (full);
 			}
 		}
 



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