st-theme-node: Fix memory leak

We ref the icon_colors in st_theme_node_get_icon_colors, but never
unref it.
This commit is contained in:
Jasper St. Pierre 2011-12-18 23:34:00 -05:00
parent c7846e172f
commit f2cbddc196

View File

@ -90,6 +90,12 @@ st_theme_node_dispose (GObject *gobject)
node->border_image = NULL;
}
if (node->icon_colors)
{
st_icon_colors_unref (node->icon_colors);
node->icon_colors = NULL;
}
G_OBJECT_CLASS (st_theme_node_parent_class)->dispose (gobject);
}