Don't leak expander pixbufs. (#316946, Tommi Komulainen)

2005-09-23  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_finalize):
	Don't leak expander pixbufs.  (#316946, Tommi Komulainen)
This commit is contained in:
Matthias Clasen 2005-09-23 16:34:25 +00:00 committed by Matthias Clasen
parent e71dfee544
commit 938af0e4c3
3 changed files with 14 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2005-09-23 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_finalize):
Don't leak expander pixbufs. (#316946, Tommi Komulainen)
2005-09-22 Michael Natterer <mitch@imendio.com> 2005-09-22 Michael Natterer <mitch@imendio.com>
Renamed GtkCellRendererKeys to GtkCellRendererAccel to be Renamed GtkCellRendererKeys to GtkCellRendererAccel to be

View File

@ -1,3 +1,8 @@
2005-09-23 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_finalize):
Don't leak expander pixbufs. (#316946, Tommi Komulainen)
2005-09-22 Michael Natterer <mitch@imendio.com> 2005-09-22 Michael Natterer <mitch@imendio.com>
Renamed GtkCellRendererKeys to GtkCellRendererAccel to be Renamed GtkCellRendererKeys to GtkCellRendererAccel to be

View File

@ -238,6 +238,10 @@ gtk_cell_renderer_pixbuf_finalize (GObject *object)
if (cellpixbuf->pixbuf) if (cellpixbuf->pixbuf)
g_object_unref (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_id);
g_free (priv->stock_detail); g_free (priv->stock_detail);