[mistelix] Fixes issue #583347
- From: Jordi Mas <jmas src gnome org>
- To: svn-commits-list gnome org
- Subject: [mistelix] Fixes issue #583347
- Date: Fri, 29 May 2009 02:46:03 -0400 (EDT)
commit c1ab9dfaf6aa3702354c3d24faa2a5909ae7d072
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]