diff options
author | Owen Taylor <otaylor@redhat.com> | 2004-02-25 15:15:32 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@src.gnome.org> | 2004-02-25 15:15:32 +0000 |
commit | d0a4abcbf4ea7ceeb1ef85c0407fe9ab62468bde (patch) | |
tree | 086ad91b08866252b83f157dc20f9045b7d8a63d /gtk/gtkstyle.c | |
parent | cc00fe061c91a3df5b4399fd163de7072da4e407 (diff) | |
download | gtk+-d0a4abcbf4ea7ceeb1ef85c0407fe9ab62468bde.tar.gz |
Free style->icon_factories (#130128)
Wed Feb 25 09:46:34 2004 Owen Taylor <otaylor@redhat.com>
* gtk/gtkstyle.c (gtk_style_finalize): Free
style->icon_factories (#130128)
Diffstat (limited to 'gtk/gtkstyle.c')
-rw-r--r-- | gtk/gtkstyle.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gtk/gtkstyle.c b/gtk/gtkstyle.c index 6197780dad..7236d98f48 100644 --- a/gtk/gtkstyle.c +++ b/gtk/gtkstyle.c @@ -687,6 +687,19 @@ gtk_style_finalize (GObject *object) } } + if (style->icon_factories) + { + GSList *tmp_list = style->icon_factories; + + while (tmp_list) + { + g_object_unref (tmp_list->data); + tmp_list = tmp_list->next; + } + + g_slist_free (style->icon_factories); + } + pango_font_description_free (style->font_desc); if (style->private_font) |