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:
parent
c7846e172f
commit
f2cbddc196
@ -90,6 +90,12 @@ st_theme_node_dispose (GObject *gobject)
|
|||||||
node->border_image = NULL;
|
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);
|
G_OBJECT_CLASS (st_theme_node_parent_class)->dispose (gobject);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user