From 938af0e4c32f31391bf3e843d1f164b20cf2fe0d Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Fri, 23 Sep 2005 16:34:25 +0000 Subject: [PATCH] Don't leak expander pixbufs. (#316946, Tommi Komulainen) 2005-09-23 Matthias Clasen * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_finalize): Don't leak expander pixbufs. (#316946, Tommi Komulainen) --- ChangeLog | 5 +++++ ChangeLog.pre-2-10 | 5 +++++ gtk/gtkcellrendererpixbuf.c | 4 ++++ 3 files changed, 14 insertions(+) diff --git a/ChangeLog b/ChangeLog index 50acc48d71..cb6ea23317 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2005-09-23 Matthias Clasen + + * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_finalize): + Don't leak expander pixbufs. (#316946, Tommi Komulainen) + 2005-09-22 Michael Natterer Renamed GtkCellRendererKeys to GtkCellRendererAccel to be diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 50acc48d71..cb6ea23317 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,8 @@ +2005-09-23 Matthias Clasen + + * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_finalize): + Don't leak expander pixbufs. (#316946, Tommi Komulainen) + 2005-09-22 Michael Natterer Renamed GtkCellRendererKeys to GtkCellRendererAccel to be diff --git a/gtk/gtkcellrendererpixbuf.c b/gtk/gtkcellrendererpixbuf.c index dfdb59fef4..74b2c2f6ce 100644 --- a/gtk/gtkcellrendererpixbuf.c +++ b/gtk/gtkcellrendererpixbuf.c @@ -238,6 +238,10 @@ gtk_cell_renderer_pixbuf_finalize (GObject *object) if (cellpixbuf->pixbuf) g_object_unref (cellpixbuf->pixbuf); + if (cellpixbuf->pixbuf_expander_open) + g_object_unref (cellpixbuf->pixbuf_expander_open); + if (cellpixbuf->pixbuf_expander_closed) + g_object_unref (cellpixbuf->pixbuf_expander_closed); g_free (priv->stock_id); g_free (priv->stock_detail);