]> Pileus Git - ~andy/gtk/blobdiff - modules/engines/pixbuf/pixbuf-rc-style.c
modules/*: Use g_list_free_full() convenience function
[~andy/gtk] / modules / engines / pixbuf / pixbuf-rc-style.c
index a3367c4a0e0e2eed6b075d7cb2ac761c2806b1cd..689965c4dd4ad13a3a08d09f6a03f533cdd43745 100644 (file)
@@ -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);
 }