From f2cbddc19654f7910be0dc2e504af3f0d871ff8f Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Sun, 18 Dec 2011 23:34:00 -0500 Subject: [PATCH] st-theme-node: Fix memory leak We ref the icon_colors in st_theme_node_get_icon_colors, but never unref it. --- src/st/st-theme-node.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/st/st-theme-node.c b/src/st/st-theme-node.c index 79ec93133..cc51498c6 100644 --- a/src/st/st-theme-node.c +++ b/src/st/st-theme-node.c @@ -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); }