[mistelix/stable] Fixes issue #583347



commit 8c9d92ba065bc052e8454ca62ad0deb15e4174e2
Author: Jordi Mas <jmas softcatala org>
Date:   Fri May 29 08:46:00 2009 +0200

    Fixes issue #583347
---
 src/widgets/SlideShowView.cs |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/src/widgets/SlideShowView.cs b/src/widgets/SlideShowView.cs
index 44c7cd6..06d1d4c 100644
--- a/src/widgets/SlideShowView.cs
+++ b/src/widgets/SlideShowView.cs
@@ -223,8 +223,10 @@ namespace Mistelix.Widgets
 		void ShowImage(DataImageSurface imageToShow)
 		{
 			using(Cairo.Context context = Gdk.CairoHelper.Create(this.GdkWindow)) {
-				context.Source = new Pattern (imageToShow);
+				Pattern pattern = new Pattern (imageToShow);
+				context.Source = pattern;
 				context.Paint ();
+				((IDisposable)pattern).Dispose ();
 			}
 		}
 		



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