From cd9b8f93ceb6d2937808f00199732705315f97de Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sat, 30 Oct 2004 02:57:23 +0000 Subject: [PATCH] Drop the reference to the pixbuf, regardless whether it is a stock pixbuf. 2004-10-29 Matthias Clasen * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_finalize): Drop the reference to the pixbuf, regardless whether it is a stock pixbuf. (#156863, Philip Langdale) --- ChangeLog | 6 ++++++ ChangeLog.pre-2-10 | 6 ++++++ ChangeLog.pre-2-6 | 6 ++++++ ChangeLog.pre-2-8 | 6 ++++++ gtk/gtkcellrendererpixbuf.c | 2 +- 5 files changed, 25 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 962abfb05b..02d373ab24 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2004-10-29 Matthias Clasen + + * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_finalize): + Drop the reference to the pixbuf, regardless whether it is + a stock pixbuf. (#156863, Philip Langdale) + 2004-10-29 Hans Breuer * gdk/makefile.msc gtk/makefile.msc.in : updated diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 962abfb05b..02d373ab24 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,9 @@ +2004-10-29 Matthias Clasen + + * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_finalize): + Drop the reference to the pixbuf, regardless whether it is + a stock pixbuf. (#156863, Philip Langdale) + 2004-10-29 Hans Breuer * gdk/makefile.msc gtk/makefile.msc.in : updated diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index 962abfb05b..02d373ab24 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,9 @@ +2004-10-29 Matthias Clasen + + * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_finalize): + Drop the reference to the pixbuf, regardless whether it is + a stock pixbuf. (#156863, Philip Langdale) + 2004-10-29 Hans Breuer * gdk/makefile.msc gtk/makefile.msc.in : updated diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index 962abfb05b..02d373ab24 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,9 @@ +2004-10-29 Matthias Clasen + + * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_finalize): + Drop the reference to the pixbuf, regardless whether it is + a stock pixbuf. (#156863, Philip Langdale) + 2004-10-29 Hans Breuer * gdk/makefile.msc gtk/makefile.msc.in : updated diff --git a/gtk/gtkcellrendererpixbuf.c b/gtk/gtkcellrendererpixbuf.c index 3c20b4dc17..0cdbb3c3ed 100644 --- a/gtk/gtkcellrendererpixbuf.c +++ b/gtk/gtkcellrendererpixbuf.c @@ -194,7 +194,7 @@ gtk_cell_renderer_pixbuf_finalize (GObject *object) priv = GTK_CELL_RENDERER_PIXBUF_GET_PRIVATE (object); - if (cellpixbuf->pixbuf && priv->stock_id) + if (cellpixbuf->pixbuf) g_object_unref (cellpixbuf->pixbuf); if (priv->stock_id)