X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=modules%2Fengines%2Fpixbuf%2Fpixbuf-rc-style.c;h=689965c4dd4ad13a3a08d09f6a03f533cdd43745;hb=6ad6f719c6b2fc7cf797c86b406f4e61d9fca4d1;hp=a3367c4a0e0e2eed6b075d7cb2ac761c2806b1cd;hpb=24360a8076af35250d22bdf19b7d3f14c2e98833;p=~andy%2Fgtk diff --git a/modules/engines/pixbuf/pixbuf-rc-style.c b/modules/engines/pixbuf/pixbuf-rc-style.c index a3367c4a0..689965c4d 100644 --- a/modules/engines/pixbuf/pixbuf-rc-style.c +++ b/modules/engines/pixbuf/pixbuf-rc-style.c @@ -184,8 +184,7 @@ pixbuf_rc_style_finalize (GObject *object) { PixbufRcStyle *rc_style = PIXBUF_RC_STYLE (object); - g_list_foreach (rc_style->img_list, (GFunc) theme_image_unref, NULL); - g_list_free (rc_style->img_list); + g_list_free_full (rc_style->img_list, theme_image_unref); G_OBJECT_CLASS (parent_class)->finalize (object); }