[f-spot] Avoid disposing of ErrorPixbuf



commit b2c497b6d5495d28e15f1a3f0a2bc4069e102361
Author: Anton Keks <anton azib net>
Date:   Wed May 19 23:45:53 2010 +0300

    Avoid disposing of ErrorPixbuf
    
    This leads to a crash on next iteration.

 src/Widgets/SlideShow.cs |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/Widgets/SlideShow.cs b/src/Widgets/SlideShow.cs
index 03d7bc9..6e30196 100644
--- a/src/Widgets/SlideShow.cs
+++ b/src/Widgets/SlideShow.cs
@@ -90,7 +90,7 @@ namespace FSpot.Widgets
 			if (running)
 				flip.Start ();
 			lock (sync_handle) {
-				if (prev != null)
+				if (prev != null && prev != PixbufUtils.ErrorPixbuf)
 					prev.Dispose ();
 				prev = next;
 



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