summaryrefslogtreecommitdiff
path: root/gtk/gtkcellrendererpixbuf.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2005-09-23 16:34:25 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2005-09-23 16:34:25 +0000
commit938af0e4c32f31391bf3e843d1f164b20cf2fe0d (patch)
tree953536d03393c116c00bd41dcef2864f4bcae619 /gtk/gtkcellrendererpixbuf.c
parente71dfee5440eb06debcb883addd5037f453eb855 (diff)
downloadgtk+-938af0e4c32f31391bf3e843d1f164b20cf2fe0d.tar.gz
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)
Diffstat (limited to 'gtk/gtkcellrendererpixbuf.c')
-rw-r--r--gtk/gtkcellrendererpixbuf.c4
1 files changed, 4 insertions, 0 deletions
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);