[rhythmbox] fading-image: fix pixbuf ref leak



commit 7ea940f4a9448bb611753a06f33891568498868a
Author: Jonathan Matthew <jonathan d14n org>
Date:   Thu Jun 21 18:20:27 2012 +1000

    fading-image: fix pixbuf ref leak

 widgets/rb-fading-image.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/widgets/rb-fading-image.c b/widgets/rb-fading-image.c
index 2173ec3..38f1158 100644
--- a/widgets/rb-fading-image.c
+++ b/widgets/rb-fading-image.c
@@ -618,6 +618,13 @@ rb_fading_image_set_pixbuf (RBFadingImage *image, GdkPixbuf *pixbuf)
 		replace_current (image, scaled, full);
 		gtk_widget_queue_draw (GTK_WIDGET (image));
 		gtk_widget_trigger_tooltip_query (GTK_WIDGET (image));
+
+		if (scaled != NULL) {
+			g_object_unref (scaled);
+		}
+		if (full != NULL) {
+			g_object_unref (full);
+		}
 	}
 }
 



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